Merge pull request #514 from JarvisCraft/dependabot/github_actions/de… #225
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: [ development ] | |
jobs: | |
deploy-snapshot: | |
name: Deploy Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- name: Set up Java 17 & Deployment credentials | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'maven' | |
server-id: 'sonatype-ossrh' | |
server-username: SONATYPE_OSSRH_DEPLOYER | |
server-password: SONATYPE_OSSRH_TOKEN | |
gpg-private-key: ${{ secrets.CODE_SIGNING_GPG_PRIVATE_KEY }} | |
gpg-passphrase: CODE_SIGNING_GPG_KEY_PASSPHRASE | |
- uses: jactions/maven-version@v1.2.0 | |
id: get_version | |
- name: Deploy snapshot | |
if: ${{ endsWith(steps.get_version.outputs.version, '-SNAPSHOT') }} | |
run: mvn deploy -B -P build-extras,sign-artifacts | |
env: | |
SONATYPE_OSSRH_DEPLOYER: ${{ secrets.SONATYPE_OSSRH_DEPLOYER }} | |
SONATYPE_OSSRH_TOKEN: ${{ secrets.SONATYPE_OSSRH_TOKEN }} | |
CODE_SIGNING_GPG_KEY_PASSPHRASE: ${{ secrets.CODE_SIGNING_GPG_KEY_PASSPHRASE }} |