File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Github Action CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - gh-actions
8+ tags :
9+ - " v*"
10+ pull_request :
11+ branches :
12+ master
13+
14+ jobs :
15+ build :
16+
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v2
21+ with :
22+ fetch-depth : 0
23+ - name : install
24+ run : |
25+ sudo apt-get update
26+ sudo apt-get install latexmk libalgorithm-diff-perl texlive texlive-latex-extra texlive-humanities graphviz
27+ pip3 install --user mako
28+ pip3 install --user typing
29+ pip3 install --user Sphinx
30+ pip3 install --user codespell
31+ - name : build pdf
32+ run : |
33+ make latexpdf
34+ git fetch --tags --force # Needed to make git-describe work
35+ mv build/latex/devicetree-specification.pdf build/latex/devicetree-specification-$(git describe).pdf
36+ - name : build html
37+ run : make html
38+ - name : build singlehtml
39+ run : make singlehtml
40+
41+ - name : upload
42+ uses : actions/upload-artifact@v2
43+ with :
44+ name : artifacts
45+ path : |
46+ build/latex/devicetree-specification-*.pdf
47+
48+ - name : deploy
49+ uses : peaceiris/actions-gh-pages@v3
50+ with :
51+ github_token : ${{ secrets.GITHUB_TOKEN }}
52+ publish_dir : ./build/singlehtml
53+
54+ - name : release
55+ uses : softprops/action-gh-release@v1
56+ if : startsWith(github.ref, 'refs/tags/')
57+ with :
58+ files : build/latex/devicetree-specification-*.pdf
59+ env :
60+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments