File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1- name : Release Upload
1+ name : Release
2+
23on :
3- release :
4- types : [ "published" ]
4+ push :
5+ tags : ' rpki-ta-0-* '
56
67jobs :
7- publish :
8+ build :
9+ if : github.repository == 'RIPE-NCC/rpki-ta-0'
810 runs-on : ubuntu-latest
9- name : Upload artefact to the latest release
10-
1111 steps :
1212 - uses : actions/checkout@v3
1313
@@ -19,18 +19,18 @@ jobs:
1919
2020 - name : Setup Gradle
2121 uses : gradle/gradle-build-action@v2.12.0
22-
22+
2323 - name : Execute Gradle build
2424 run : ./gradlew build
25-
25+
2626 - name : Rename the package
27- run : mv $(find build/distributions -name rpki-ta-0\*.tgz) rpki-ta-0-java-11.tgz
28-
29- - name : Upload binaries to release
30- uses : svenstaro/upload-release-action@v2
27+ run : mv $(find build/distributions -name rpki-ta-0\*.tgz) rpki-ta-0-${{github.ref_name}}-java-11.tgz
28+
29+ - name : Release
30+ uses : softprops/action-gh-release@v2
31+ if : startsWith(github.ref, 'refs/tags/')
3132 with :
32- repo_token : ${{ secrets.GITHUB_TOKEN }}
33- file : rpki-ta-0-java-11.tgz
34- asset_name : rpki-ta-0-java-11.tgz
35- tag : ${{ github.ref }}
36-
33+ files : rpki-ta-0-java-11.tgz
34+ draft : true
35+ body : It needs to be filled in manually
36+
You can’t perform that action at this time.
0 commit comments