-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.07 KB
/
deploy.yml
File metadata and controls
43 lines (37 loc) · 1.07 KB
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
name: Deploy Snapshots
on:
push:
branches: [ 'master' ]
workflow_dispatch:
repository_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: 'maven'
server-id: central
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
- name: Deploy snapshot
run: mvn -B deploy --file pom.xml
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- name: Deploy to kouka
uses: fjogeleit/http-request-action@v1
with:
url: 'https://bamboo-ci.pih-emr.org/rest/api/latest/queue/OMRS-DEPLOYKOUKA'
method: 'POST'
bearerToken: ${{ secrets.PIH_BAMBOO_API_KEY }}
customHeaders: '{"Accept": "application/json"}'
retry: 60
retryWait: 60000