-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (68 loc) · 2.73 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: ReleaseBuld
on:
workflow_call: # Reusable by other workflows
push:
branches-ignore:
- 'gh-pages'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: hl7fhir/ig-publisher-base:latest
steps:
- name: Gather prerequisites
run: >
gosu publisher /home/publisher/bin/with-latest-sushi.sh &&
curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o "./publisher.jar" --create-dirs
- name: Checkout current repo to ./source
uses: actions/checkout@v2
with:
# repository: medigree/core
path: source
- name: Checkout HL7/fhir-ig-history-template to ./history-template
uses: actions/checkout@v2
with:
repository: HL7/fhir-ig-history-template
path: history-template
- name: Checkout DigitalSQR/smart-releases to ./webroot
uses: actions/checkout@v2
with:
repository: DigitalSQR/smart-releases
path: webroot
- name: Checkout FHIR/ig-registry to ./ig-registry
uses: actions/checkout@v2
with:
repository: FHIR/ig-registry
path: ig-registry
- name: Create folder
uses: docker://hl7fhir/ig-publisher-base:latest
with:
entrypoint: /bin/sh
args: -c "mkdir -p ./fhir-package-cache && chown 1001:127 ./fhir-package-cache"
- name: Run publisher command
run: java -jar ./publisher.jar publisher -ig source -package-cache-folder ./fhir-package-cache
- name: Run publisher command for publishing release
run: java -Dfile.encoding=UTF-8 -jar publisher.jar -go-publish -package-cache-folder ./fhir-package-cache -source source -web $(pwd)/webroot -registry ./ig-registry/fhir-ig-list.json -history ./history-template -templates $(pwd)/webroot/templates
- name: debug- List dirs
run: find . -type d
- name: Configure git to trust the workspace despite the different owner
run:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Deploy main
uses: docker://JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./webroot # The folder the action should deploy.
token: ${{ secrets.GITHUB_TOKEN }}
target-folder: website
commit-message: Deploy website preview
single-commit: true
clean: false
# - name: Deploy to gh-pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./webroot
# destination_dir: website