Skip to content

Commit b5e171b

Browse files
committed
Do GitHub release after uploading artifacts to Maven
1 parent 6bde2f7 commit b5e171b

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ env:
1515
PREVIEW_TASK: publishSnapshotPublicationToSonatypeSnapshotRepository
1616
PUBLISH_TASK: publishMavenCentralReleasePublicationToSonatypeRepository
1717

18+
permissions:
19+
contents: write
20+
1821
jobs:
1922
maven_Preview:
2023
if: ${{ github.ref == 'refs/heads/main' }}
@@ -94,4 +97,11 @@ jobs:
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

.github/workflows/git-release.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)