File tree Expand file tree Collapse file tree 2 files changed +26
-65
lines changed
Expand file tree Collapse file tree 2 files changed +26
-65
lines changed Original file line number Diff line number Diff line change 11name : Build
22
33on :
4+ release :
5+ types :
6+ - published
47 push :
58 branches :
69 - ' **'
912 pull_request :
1013
1114permissions :
12- contents : read
15+ id-token : write
16+ attestations : write
17+ contents : write
1318
1419jobs :
15- build :
20+ release :
1621 runs-on : ubuntu-latest
1722 steps :
1823 - name : Checkout
@@ -29,13 +34,32 @@ jobs:
2934 with :
3035 validate-wrappers : true
3136
37+ - name : Enable gradlew execution
38+ run : chmod +x ./gradlew
39+
3240 - name : Gradle Build
3341 run : ./gradlew build
3442
43+ - name : Attest Build Provenance
44+ uses : actions/attest-build-provenance@v2
45+ with :
46+ subject-path : ' build/libs/*.jar, !build/libs/*-sources.jar'
47+
3548 - name : Upload Artifacts
3649 uses : actions/upload-artifact@v4
3750 with :
3851 name : Artifacts
3952 path : |
4053 build/libs/*.jar
4154 !build/libs/*-sources.jar
55+
56+ - name : Maven Publish
57+ if : github.event_name == 'release' && github.event.action == 'published'
58+ run : ./gradlew publish
59+
60+ - name : Github Publish
61+ if : github.event_name == 'release' && github.event.action == 'published'
62+ 63+ with :
64+ files : ' build/libs/*.jar;!build/libs/*-sources.jar'
65+ repo-token : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments