File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 15
15
packages : write
16
16
17
17
steps :
18
- - name : checkout
18
+ - name : checkout production
19
19
uses : actions/checkout@v2
20
20
with :
21
21
ref : ' production'
32
32
publish_dir : source/_build/html
33
33
cname : python.datasciencebook.ca
34
34
force_orphan : true # this will clean up all previous PR previews / main branch preview
35
+
36
+ # rebuild the dev version after the previous copy was cleaned out
37
+ - name : checkout main
38
+ uses : actions/checkout@v2
39
+ with :
40
+ ref : ' main'
41
+
42
+ - name : Build the book
43
+ run : |
44
+ ./build_html.sh
35
45
36
-
46
+ # Push the book's HTML to github-pages
47
+ - name : GitHub Pages action
48
+
49
+ with :
50
+ github_token : ${{ secrets.GITHUB_TOKEN }}
51
+ publish_dir : source/_build/html
52
+ keep_files : true
53
+ destination_dir : dev
54
+ # force_orphan: true # once peaceiris updates to v4, change this to true and keep_files: true for the PR / main branch deploy previews
You can’t perform that action at this time.
0 commit comments