File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Generate Deploy Preview
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ master ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Setup Python
13
+ uses : actions/setup-python@v1.2.0
14
+ with :
15
+ python-version : 3.7
16
+ - name : Build documentation
17
+ run : |
18
+ make venv
19
+ make html
20
+ mkdir to-github
21
+ mv build/html to-github/${{ github.sha }}
22
+ working-directory : Doc
23
+ - name : Deploy to GitHub Pages
24
+ uses : JamesIves/github-pages-deploy-action@3.4.1
25
+ with :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ BRANCH : gh-pages
28
+ FOLDER : Doc/to-github
29
+ - name : Comment Deploy Preview Link
30
+ uses : thollander/actions-comment-pull-request@1.0.0
31
+ with :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ message : Deploy preview available at https://epicfaace.github.io/cpython/${{ github.sha }}
You can’t perform that action at this time.
0 commit comments