Skip to content

Commit

Permalink
Merge pull request #179 from RADAR-base/fix/release-workflow
Browse files Browse the repository at this point in the history
Update GA release workflow
  • Loading branch information
mpgxvii authored Dec 3, 2024
2 parents 52a509e + 762292d commit 8bbdce4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Release

on:
workflow_dispatch:
release:
types: [published]

Expand Down Expand Up @@ -39,7 +40,7 @@ jobs:
- name: Upload to GitHub
uses: AButler/[email protected]
with:
files: 'radar-commons*/build/libs/*;radar-commons*/build/reports/*.tar.gz'
files: "radar-commons*/build/libs/*;radar-commons*/build/reports/*.tar.gz"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install gpg secret key
Expand All @@ -51,10 +52,10 @@ jobs:
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} publish closeAndReleaseSonatypeStagingRepository
run: ./gradlew -Psigning.gnupg.keyName=${{ secrets.OSSRH_GPG_SECRET_KEY_NAME }} -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} publish closeAndReleaseSonatypeStagingRepository

- name: Publish gradle plugin
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} :radar-commons-gradle:publish :radar-commons-gradle:closeAndReleaseSonatypeStagingRepository
run: ./gradlew -Psigning.gnupg.keyName=${{ secrets.OSSRH_GPG_SECRET_KEY_NAME }} -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} :radar-commons-gradle:publish :radar-commons-gradle:closeAndReleaseSonatypeStagingRepository

0 comments on commit 8bbdce4

Please sign in to comment.