-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (30 loc) · 1.11 KB
/
deploy-snapshot.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}