File tree 2 files changed +32
-8
lines changed 2 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy to GitHub Pages
2
2
on :
3
3
push :
4
+ branches :
5
+ - master
6
+ tags :
7
+ - ' v*'
4
8
5
9
jobs :
6
10
build-and-deploy :
27
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
32
BRANCH : gh-pages
29
33
FOLDER : build/html
30
- - name : build pdf
31
- run : |
32
- make latexpdf
33
- - uses : actions/upload-artifact@v2
34
- if : ${{ always() }}
35
- with :
36
- name : pdf
37
- path : build/latex/reinforcement-learning-an-introduction-chinese.pdf
Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' v*'
6
+
7
+ jobs :
8
+ build-and-deploy :
9
+ runs-on : ubuntu-latest
10
+ container :
11
+ image : qiwihui/docker-sphinx-cjk-pdf
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v1
15
+ - name : Install dependencies
16
+ run : |
17
+ pip3 install -U -r requirements.txt
18
+ - name : build pdf
19
+ run : |
20
+ make latexpdf
21
+ - name : upload pdf asset
22
+ uses : softprops/action-gh-release@v1
23
+ env :
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
+ with :
26
+ draft : false
27
+ prerelease : false
28
+ files : ./build/latex/reinforcement-learning-an-introduction-chinese.pdf
You can’t perform that action at this time.
0 commit comments