-
Notifications
You must be signed in to change notification settings - Fork 229
60 lines (52 loc) · 1.44 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
name: Github Action CI
on:
push:
branches:
- '**'
tags:
- 'v*'
pull_request:
branches:
master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install
run: |
sudo apt-get update
sudo apt-get install latexmk libalgorithm-diff-perl texlive texlive-latex-extra texlive-humanities graphviz
pip3 install --user mako
pip3 install --user typing
pip3 install --user Sphinx
pip3 install --user codespell
git fetch --tags --force # Needed to make git-describe work
- name: build pdf
run: |
make latexpdf
mv build/latex/devicetree-specification.pdf build/latex/devicetree-specification-$(git describe).pdf
- name: build html
run: make html
- name: build singlehtml
run: make singlehtml
- name: upload
uses: actions/upload-artifact@v2
with:
name: artifacts
path: |
build/latex/devicetree-specification-*.pdf
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/singlehtml
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/latex/devicetree-specification-*.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}