Skip to content

Merge pull request #205 from gsmet/action-empty #140

Merge pull request #205 from gsmet/action-empty

Merge pull request #205 from gsmet/action-empty #140

name: Snapshot Release
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
on:
push:
branches: [ main ]
jobs:
release-snapshot:
runs-on: ubuntu-latest
name: snapshot-release
steps:
- uses: actions/checkout@v4
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: 'maven'
- name: Maven release ${{steps.metadata.outputs.next-version}}
run: |
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.GPG_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg
mvn -B deploy -DperformRelease -Dno-samples -Prelease -s maven-settings.xml