Skip to content

Commit c46aeb5

Browse files
committed
update release configuration
1 parent 5078071 commit c46aeb5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
# To get a newer version, you will need to update the SHA.
88
# You can also reference a tag or branch, but the action may change without warning.
99

10-
name: Publish package to the Maven Central Repository
10+
name: Release
1111
on:
12-
release:
13-
types: [created]
12+
workflow_dispatch:
1413
jobs:
15-
publish:
14+
release:
1615
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v4
@@ -25,11 +24,20 @@ jobs:
2524
java-version: '24'
2625
- name: Setup Gradle
2726
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
28-
- name: Publish package
27+
- name: Run JReleaser
2928
run: ./gradlew jreleaserFullRelease
3029
env:
30+
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
3232
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
3333
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3434
JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3535
JRELEASER_MAVENCENTRAL_SONATYPE_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
36+
- name: JReleaser release output
37+
if: always()
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: jreleaser-release
41+
path: |
42+
lib/build/jreleaser/trace.log
43+
lib/build/jreleaser/output.properties

0 commit comments

Comments
 (0)