Skip to content

Commit

Permalink
chore: use github action deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot authored Jun 21, 2024
1 parent edd8ec6 commit d6c2f6c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

steps:
- name: Import GPG keys
run: |
echo $GPG_SECRET_KEYS | base64 --decode | gpg --batch --import
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust
- name: Use checkout
uses: actions/checkout@v4
with:
Expand All @@ -29,18 +34,14 @@ jobs:
with:
distribution: 'temurin'
java-version: 8

- name: Import GPG keys
run: |
echo $GPG_SECRET_KEYS | base64 --decode | gpg --batch --import
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust
- name: Build with Jacoco
run: mvn --settings scripts/settings.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent package org.jacoco:jacoco-maven-plugin:report
cache: 'maven'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: GPG_SECRET_KEYS
gpg-passphrase: GPG_PASSPHRASE

- name: Deploy
run: |
export GPG_TTY=$(tty)
chmod +x scripts/deploy.sh
./scripts/deploy.sh
run: mvn deploy


0 comments on commit d6c2f6c

Please sign in to comment.