Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cushon committed Feb 24, 2023
1 parent 973cbff commit eb7edaf
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Expand Up @@ -12,16 +12,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup Signing Key
run: |
gpg-agent --daemon --default-cache-ttl 7200
echo -e "${{ secrets.GPG_SIGNING_KEY }}" | gpg --batch --import --no-tty
echo "hello world" > temp.txt
gpg --detach-sig --yes -v --output=/dev/null --pinentry-mode loopback --passphrase "${{ secrets.GPG_PASSPHRASE }}" temp.txt
rm temp.txt
gpg --list-secret-keys --keyid-format LONG
steps:
- name: Checkout
uses: actions/checkout@v2.4.0

Expand All @@ -34,6 +25,8 @@ jobs:
server-id: sonatype-nexus-staging
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Bump Version Number
run: |
Expand All @@ -51,6 +44,7 @@ jobs:
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run:
mvn --no-transfer-progress -pl '!eclipse_plugin' -P sonatype-oss-release clean deploy -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"

Expand Down

0 comments on commit eb7edaf

Please sign in to comment.