-
Notifications
You must be signed in to change notification settings - Fork 6
103 lines (83 loc) · 3.43 KB
/
new.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: DITA-OT-OCRD
'on':
push:
branches:
- master
workflow_dispatch:
jobs:
build-dita:
name: Build DITA
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Build Bootstrap-german ⚙️
uses: dita-ot/dita-ot-action@master
with:
install: |
apt-get update -q
export DEBIAN_FRONTEND=noninteractive
apt-get install -qy --no-install-recommends nodejs
nodejs -v
plugins: |
https://github.com/jason-fox/fox.jason.extend.css/archive/master.zip
https://github.com/infotexture/dita-bootstrap/archive/develop.zip
https://github.com/jason-fox/fox.jason.prismjs/archive/master.zip
build: |
dita --project=.github/dita-ot/html.xml
- name: Build Bootstrap-english ⚙️
uses: dita-ot/dita-ot-action@master
with:
install: |
apt-get update -q
export DEBIAN_FRONTEND=noninteractive
apt-get install -qy --no-install-recommends nodejs
nodejs -v
plugins: |
https://github.com/jason-fox/fox.jason.extend.css/archive/master.zip
https://github.com/infotexture/dita-bootstrap/archive/develop.zip
https://github.com/jason-fox/fox.jason.prismjs/archive/master.zip
build: |
dita --project=.github/dita-ot/html_en.xml
- name: Set up JDK 1.8
uses: joschi/setup-jdk@v2
with:
java-version: '11'
- name: Download and install saxon
run: wget https://sourceforge.net/projects/saxon/files/Saxon-HE/10/Java/SaxonHE10-5J.zip/download && unzip download
- name: output dir
run: cd out && sudo mkdir rules
- name: transform rules
run: sudo java -jar saxon-he-10.5.jar -xsl:de/xsl/rules.xsl -s:de/trans/trFremdsprache.dita -o:out/rules/ruleset_character.json && sudo java -jar saxon-he-10.5.jar -xsl:de/xsl/rules.xsl -s:de/trans/trLigaturen2.dita -o:out/rules/ruleset_ligature.json
- name: Deploy HTML 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.
# - name: Build PDF
# uses: dita-ot/dita-ot-action@master
# with:
# install: |
# # Run some arbitrary installation commands
# apt-get update -q
# apt-get install -qy --no-install-recommends nodejs
# nodejs -v
# Install plugins
# dita install fox.jason.extend.css
# dita install org.doctales.xmltask
# dita install fox.jason.prismjs
# build: |
# # Use the dita command line
# dita --project=.github/dita-ot/pdf.xml -o out -f pdf
- name: Upload DITA Output to a ZIP file
uses: actions/upload-artifact@v2
with:
name: OCRD-GT-Guidelines
path: 'out'
- name: Deploy DITA Output to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: $
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.