generated from hl7-be/empty-ig-custom
-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (64 loc) · 2.16 KB
/
ci.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
65
66
67
68
69
70
71
72
73
name: Build And Publish base
on:
workflow_dispatch:
push:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Runner Info
run: |
echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
echo "🐧 Now running on a ${{ runner.os }} server hosted by GitHub!"
echo "🔎 Branch is ${{ github.ref }} ${{ github.repository }} repo"
echo "💡 The ${{ github.repository }} repo has been cloned to the runner."
echo "The event_name is ${{ github.event_name }}"
echo "The event.pull_request.merged is ${{ github.event.pull_request.merged}}"
echo "The ref is ${{ github.ref }}"
echo "Provided IG is ${{ inputs.ig }}"
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '3'
- name: Setup Java / Maven
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install Jekyll
run: |
gem install jekyll
- name: Version Info
run: |
java -version
npm --version
jekyll --version
mvn --version
- name: Install graphviz to support extra plantuml diagrams
run: |
sudo apt install graphviz
- name: Build IG
run: |
npm install -g fsh-sushi
sushi .
./_updatePublisher.sh -y && ./_genonce.sh
- name: Deploy IG
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./output
commit-message: Deploy IG ${{ github.ref_name }}
target-folder: ${{ github.ref_name }}
single-commit: true
clean: false
# - name: Deploy history
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: ./history
# commit-message: Deploy IG history ${{ github.ref_name }}
# target-folder: ${{ github.ref_name }}
# single-commit: true
# clean: false