Skip to content

Commit 98cc4b0

Browse files
committed
Merge GitHub release steps to maven release workflow
1 parent 62019c4 commit 98cc4b0

File tree

2 files changed

+10
-33
lines changed

2 files changed

+10
-33
lines changed

.github/workflows/git-release.yml

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

.github/workflows/preview-and-release.yml

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

20+
permissions:
21+
contents: write
22+
2023
jobs:
2124
maven_Preview:
2225
if: ${{ github.ref == 'refs/heads/main' }}
@@ -96,3 +99,10 @@ jobs:
9699
gradle.properties
97100
**/gradle/**
98101
Scripts/**
102+
- name: GitHub Release
103+
uses: softprops/action-gh-release@v2
104+
with:
105+
token: ${{ secrets.GITHUB_TOKEN }}
106+
fail_on_unmatched_files: true
107+
files: |
108+
build/**/*.jar

0 commit comments

Comments
 (0)