-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (36 loc) · 1.27 KB
/
main.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
name: generate_2023-07_Pilot-ER
on:
push:
branches:
- master
# schedule:
# - cron: '1 22 * * *'
jobs:
build:
runs-on: ubuntu-latest
container: metanorma/metanorma:latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
path: main
- name: Checkout other repo
uses: actions/checkout@v3 # checkout the repository content to github runner
with:
repository: opengeospatial/climate-resilience-dwg
path: 2023-07_Pilot-ER
- name: Generate document
run: |
cd 2023-07_Pilot-ER
pwd
cd 2023-07_Pilot-ER
# mkdir target # Metanorma output will be there.
# Generate HTML only because the deltas are efficiently handled by versionning systems, contrarily to PDF binary.
metanorma compile -t ogc -x xml,html,pdf --agree-to-terms document.adoc
# mv ./target/document.html ../main/23-016.html
# cd ../main
git config --global user.name 'opengeospatial'
git config --global user.email 'opengeospatial@users.noreply.github.com'
git add .
git commit --message "Automated generation of HTML document"
git push