-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 1.59 KB
/
deploy.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
36
37
38
name: Deploy
on:
push:
tags:
- 'v*'
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Set up JDK 1.8
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1
with:
java-version: 1.8
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Customize the Maven settings.xml
uses: whelk-io/maven-settings-xml-action@4637f7c31534ec06928b10da807735657a921266 # v4
with:
servers: '[{ "id": "ossrh", "username": "${{ secrets.SONATYPE_USERNAME }}", "password": "${{ secrets.SONATYPE_PASSWORD }}" }, { "id": "ossrh", "username": "${{ secrets.SONATYPE_USERNAME }}", "password": "${{ secrets.SONATYPE_PASSWORD }}" }]'
- name: Configure the application
run: |
properties="src/main/resources/application.properties"
rm -f "${properties}"
echo "secrets_vault.tenant = ${{ secrets.DSV_TENANT }}" >> "${properties}"
echo "secrets_vault.client_id = ${{ secrets.DSV_CLIENT_ID }}" >> "${properties}"
echo "secrets_vault.client_secret = ${{ secrets.DSV_CLIENT_SECRET }}" >> "${properties}"
echo "secret.path = /test/sdk/simple" >> "${properties}"
- name: Deploy with Maven
run: |
mvn -P github -B -C -ff -ntp -U deploy -Dregistry=https://maven.pkg.github.com/delineaXPM -Dtoken=GH_TOKEN -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}