generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.07 KB
/
deploy-to-github.yml
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
name: Deploy to GitHub Packages
on:
push:
branches:
- testm
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: temurin
- name: Publish Package - lib-hl7v2-nist
run: mvn -B package
- name: Publish package to github Repo
run: mvn clean -X deploy --settings .github/workflows/mvn-settings.xml
env:
LIB_GITHUB_ACTOR: '${{ secrets.LIB_GITHUB_ACTOR }}'
LIB_GITHUB_TOKEN: '${{ secrets.LIB_GITHUB_TOKEN }}'
- name: Publish package to Maven Central
run: mvn clean -X deploy --settings .github/workflows/mvn-settings.xml
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
GPG_PASSPHRASE: '${{ secrets.GPG_PASSPHRASE }}'
GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}'