We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8faa341 commit efe553cCopy full SHA for efe553c
.github/workflows/build_book.yml
@@ -22,7 +22,7 @@ jobs:
22
packages: write
23
24
steps:
25
- - name: checkout
+ - name: checkout production
26
uses: actions/checkout@v2
27
with:
28
ref: 'production'
@@ -40,3 +40,22 @@ jobs:
40
force_orphan: true # this will clean up all previous PR previews / main branch preview
41
cname: datasciencebook.ca
42
43
+ # rebuild the dev version after the previous copy was cleaned out
44
+ - name: checkout main
45
+ uses: actions/checkout@v2
46
+ with:
47
+ ref: 'main'
48
+
49
+ - name: Build the book
50
+ run: |
51
+ ./build_html.sh
52
53
+ # Push the book's HTML to github-pages
54
+ - name: GitHub Pages action
55
+ uses: peaceiris/[email protected]
56
57
+ github_token: ${{ secrets.GITHUB_TOKEN }}
58
+ publish_dir: docs/
59
+ keep_files: true
60
+ destination_dir: dev
61
0 commit comments