Merge pull request #655 from JarvisCraft/dependabot/github_actions/de… #364
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/[email protected] | |
- name: Set up Java 17 & Deployment credentials | |
uses: actions/[email protected] | |
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/[email protected] | |
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 }} |