Skip to content

Commit

Permalink
fix build try onc emore
Browse files Browse the repository at this point in the history
  • Loading branch information
moovida committed Nov 5, 2024
1 parent 4de3be6 commit 32e9e9e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,34 @@ jobs:
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Run Tests
run: |
mvn clean verify
- id: install-secret-key
name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
# - id: install-secret-key
# name: Install gpg secret key
# run: |
# # Install gpg secret key
# cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
# # Verify gpg secret key
# gpg --list-secret-keys --keyid-format LONG

- name: Build and Deploy Snapshot
run: |
mvn deploy -DskipTests=true -P release -Dmaven.javadoc.skip=true -Dgpg.skip=false
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

# build-and-test:
# runs-on: ubuntu-22.04
Expand Down

0 comments on commit 32e9e9e

Please sign in to comment.