diff options
| author | Fabian Mastenbroek <fmastenbroek@meta.com> | 2023-01-06 15:05:06 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2023-01-07 21:55:56 +0000 |
| commit | 7e97b34f96cbaab14466d73a8179a5e6d98449d5 (patch) | |
| tree | c2202c9fcfe3238c637025001dd0c91facfc5000 /.github/workflows/release.yml | |
| parent | 0c0a823fec1e67be6f9e72c0c790636f364f8b23 (diff) | |
ci: Publish to Maven Central in publish workflow
This change updates the release and publish workflows in GitHub Actions
to ensure that we only publish the artifacts to Maven Central once the
release on GitHub is published.
When a version tag is pushed to GitHub, only a draft release will be
created containing the right artifacts.
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8492262..711a0685 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +# Workflow for creating a draft release once a new tag is pushed to GitHub name: Release on: @@ -21,12 +22,7 @@ jobs: - name: Publish with Gradle uses: gradle/gradle-build-action@v2 with: - arguments: publish - env: - ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} - ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} - ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }} - ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }} + arguments: assembleDist - name: Create Release uses: softprops/action-gh-release@v1 with: |
