-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (51 loc) · 1.6 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
name: CI
'on':
push:
branches:
- master
- develop
workflow_dispatch:
jobs:
build-dita:
name: Build DITA
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Calculate short SHA
uses: benjlevesque/short-sha@v3.0
id: short-sha
with:
length: 7
- run: echo $SHA
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- run: echo $SHA
env:
SHA: ${{ env.SHA }}
- name: Build Bootstrap
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: |
fox.jason.extend.css
https://github.com/infotexture/dita-bootstrap/archive/develop.zip
net.infotexture.dita-bootstrap.lunr
fox.jason.prismjs
fox.jason.favicon
fox.jason.open-graph
https://github.com/jason-fox/fox.jason.theme-switcher/archive/master.zip
project: .github/dita-ot/html.xml
- name: Deploy HTML 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: out/html # The folder the action should deploy.
commit-message: '🚀 Deploy ${{ env.SHA }} to GitHub Pages'
git-config-name: 'GitHub Action'
git-config-email: 'action@github.com'