File tree Expand file tree Collapse file tree 2 files changed +11
-33
lines changed
Expand file tree Collapse file tree 2 files changed +11
-33
lines changed Original file line number Diff line number Diff line change 1515 PREVIEW_TASK : publishSnapshotPublicationToSonatypeSnapshotRepository
1616 PUBLISH_TASK : publishMavenCentralReleasePublicationToSonatypeRepository
1717
18+ permissions :
19+ contents : write
20+
1821jobs :
1922 maven_Preview :
2023 if : ${{ github.ref == 'refs/heads/main' }}
4952 run : ./gradlew $PREVIEW_TASK
5053
5154 maven_Release :
52- if : startsWith(github.ref, 'refs/tags/')
55+ if : ${{ startsWith(github.ref, 'refs/tags/') && github.actor == 'release-please[bot]'}}
5356 environment :
5457 name : maven_central_release
5558 runs-on : ubuntu-latest
9497 gradle.properties
9598 **/gradle/**
9699 Scripts/**
100+ - name : Github Release
101+ uses : softprops/action-gh-release@v2
102+ with :
103+ token : ${{ secrets.GITHUB_TOKEN }}
104+ fail_on_unmatched_files : true
105+ files : |
106+ build/**/*.jar
97107
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments