Skip to content

Commit

Permalink
Webrepl slog (#207)
Browse files Browse the repository at this point in the history
* Rework release GitHub Action
  • Loading branch information
ksclarke authored Oct 6, 2024
1 parent fc422a8 commit 333d44a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
runs-on: ubuntu-latest
env:
AUTORELEASE_ARTIFACT: false
MAVEN_GPG_PASSPHRASE: "${{ secrets.BUILD_PASSPHRASE }}"
NEXUS_USERNAME: "${{ secrets.SONATYPE_USERNAME }}"
NEXUS_PASSWORD: "${{ secrets.SONATYPE_PASSWORD }}"
strategy:
Expand All @@ -30,6 +29,15 @@ jobs:
distribution: 'adopt'
java-version: ${{ matrix.java }}

- name: Import GPG key
run: |
echo "${{ secrets.BUILD_KEY }}" | gpg --batch --import
gpg --list-keys
- name: Set GPG passphrase for Maven
run: |
echo "MAVEN_GPG_PASSPHRASE=${{ secrets.BUILD_PASSPHRASE }}" >> $GITHUB_ENV
- name: Login to Docker repository
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v2.0.0
with:
Expand All @@ -46,6 +54,7 @@ jobs:
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.BUILD_PASSPHRASE }}
run: |
mvn deploy -B -ntp -Drevision="${{ env.RELEASE_VERSION }}" -Prelease \
-Dgpg.keyname="${{ secrets.BUILD_KEY }}" -Dautorelease.artifact="${{ env.AUTORELEASE_ARTIFACT }}"
-Dautorelease.artifact="${{ env.AUTORELEASE_ARTIFACT }}"

0 comments on commit 333d44a

Please sign in to comment.