-
Notifications
You must be signed in to change notification settings - Fork 19
51 lines (50 loc) · 1.39 KB
/
create-release.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Create Release
on:
push:
# run only on tags
tags:
- '**'
jobs:
release:
name: Deploy
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Unpack secrets
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
./decrypt_secret.sh
- name: Deploy
env:
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
OKTA_CLIENT_SECRET: ${{ secrets.OKTA_CLIENT_SECRET }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
run: |
mvn -DskipTests clean package
mvn -s settings.xml deploy
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: jar-files
path: "target/*.jar"
retention-days: 1
gh-release:
name: Create a GitHub Release
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
needs: [ release ]
steps:
- name: Download artifacts to append to release
uses: actions/download-artifact@v3
with:
name: jar-files
path: target
- name: Create a GitHub Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
draft: true
files: target/*.jar