Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Saloed committed Oct 24, 2023
1 parent edae365 commit fe99436
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
push:
release:
types: [ published ]

Expand All @@ -19,12 +20,11 @@ jobs:
distribution: 'zulu'
cache: gradle

- name: Build artifacts
- name: Publish to Maven Central
uses: gradle/gradle-build-action@v2
with:
arguments: |
publishAllPublicationsToCentralRepository
publishAllPublicationsToReleaseDirRepository
--no-daemon
-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=2G
-PmavenDeployUrl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
Expand All @@ -33,6 +33,14 @@ jobs:
-PmavenSignGpgKey="${{ secrets.MAVEN_SIGN_GPG_KEY }}"
-PmavenSignGpgPassword=${{ secrets.MAVEN_SIGN_GPG_PASSWORD }}
- name: Publish to Github releases
uses: gradle/gradle-build-action@v2
with:
arguments: |
publishAllPublicationsToReleaseDirRepository
--no-daemon
-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=2G
- name: Upload release artifacts
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit fe99436

Please sign in to comment.