-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 980 Bytes
/
deployment.yml
File metadata and controls
41 lines (36 loc) · 980 Bytes
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
37
38
39
40
41
name: Artifact deployment
on:
release:
types: [created]
jobs:
github:
name: Github deployment
runs-on: ubuntu-latest
concurrency:
group: deploy-github-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
steps:
- name: Deploy to Github
uses: bernardo-mg/maven-github-deployment-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
jdk: 17
central:
name: Central deployment
runs-on: ubuntu-latest
environment: deployment_central
concurrency:
group: deploy-central-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Deploy
uses: bernardo-mg/maven-signed-deployment-action@v1
with:
username: ${{ secrets.CENTRAL_USERNAME }}
password: ${{ secrets.CENTRAL_TOKEN }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
jdk: 17