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 1515 packages : write
1616
1717 steps :
18- - name : checkout
18+ - name : checkout production
1919 uses : actions/checkout@v2
2020 with :
2121 ref : ' production'
3232 publish_dir : source/_build/html
3333 cname : python.datasciencebook.ca
3434 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
3545
36-
46+ # Push the book's HTML to github-pages
47+ - name : GitHub Pages action
48+ uses : peaceiris/actions-gh-pages@v3.8.0
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