Add env variable MAVEN_GPG_PASSPHRASE in prepare (#147) #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Snapshot | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Deploy snapshot | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: ./.github/actions/setup-jdk | |
with: | |
server-id: snapshot-repository | |
- name: Deploy snapshot | |
run: ./mvnw deploy -Prelease-snapshot --batch-mode --update-snapshots -DskipTests -DretryFailedDeploymentCount=3 | |
env: | |
MAVEN_USERNAME: ${{ secrets.SONATYPE_OSS_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.SONATYPE_OSS_PASSWORD }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |