-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.1 KB
/
deploy-snapshots.yml
File metadata and controls
43 lines (36 loc) · 1.1 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: [main]
repository_dispatch:
types: ['deploy-snapshots']
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Check out the code
- name: Check out repository
uses: actions/checkout@v3
# Cache Maven dependencies
- name: Cache Maven dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Set up Java 8 and Maven settings file
- name: Set up JDK 8 and Maven settings file
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
server-id: openmrs-repo-snapshots
server-username: BINTRAY_USERNAME
server-password: BINTRAY_PASSWORD
# Deploy to snapshot repository
- name: Maven Deploy
run: mvn -B deploy --file pom.xml
env:
BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}