generated from MSF-OCG/LIME-EMR
-
Notifications
You must be signed in to change notification settings - Fork 14
64 lines (55 loc) · 2.13 KB
/
build-all.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build all configurations and deploy
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-publish:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Set settings.xml
uses: s4u/maven-settings-action@v3.0.0
with:
servers: |
[{
"id": "uvl-emr-github-lime-emr",
"username": "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_USERNAME }}",
"password": "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_TOKEN }}"
}]
- name: Build and Test
run: mvn --batch-mode --update-snapshots --activate-profiles validator clean package
- name: Publish UVL distro artifacts to GitHub
uses: ./.github/actions/upload-maven-artifacts
with:
artifact-name: "distro"
artifact-path: "${{ github.workspace }}/distro"
maven-server-username: "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_USERNAME }}"
maven-server-token: "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_TOKEN }}"
- name: Publish UVL Mugamba to artifacts GitHub
uses: ./.github/actions/upload-maven-artifacts
with:
artifact-name: "Burundi"
artifact-path: "${{ github.workspace }}/countries/burundi"
maven-server-username: "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_USERNAME }}"
maven-server-token: "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_TOKEN }}"
- name: Publish UVL Burundi artifacts to GitHub
uses: ./.github/actions/upload-maven-artifacts
with:
artifact-name: "Mugamba"
artifact-path: "${{ github.workspace }}/sites/mugamba"
maven-server-username: "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_USERNAME }}"
maven-server-token: "${{ secrets.MAVEN_GITHUB_ACTIONS_DEPLOY_TOKEN }}"