File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Release Asset
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Release version'
8+ required : true
9+ upload_url :
10+ description : ' Upload URL'
11+ required : true
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Set up JDK 11
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : 11
22+ - name : Build with Maven
23+ run : mvn -B clean package --file pom.xml
24+
25+ - name : Upload Release Asset
26+ uses : actions/upload-release-asset@v1
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ with :
30+ upload_url : ${{ github.event.inputs.upload_url }}
31+ asset_path : ./target/sql-statement-builder-${{ github.event.inputs.version }}.jar
32+ asset_name : sql-statement-builder-${{ github.event.inputs.version }}.jar
33+ asset_content_type : application/java-archive
You can’t perform that action at this time.
0 commit comments