Skip to content

Merge pull request #343 from UBC-DSCI/main #45

Merge pull request #343 from UBC-DSCI/main

Merge pull request #343 from UBC-DSCI/main #45

Workflow file for this run

name: Rebuild and deploy book to gh-pages branch
on:
push:
branches:
- production
paths:
- 'source/**'
- 'build_html.sh'
jobs:
deploy-book:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: 'production'
- name: Build the book
run: |
./build_html.sh
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: source/_build/html
cname: python.datasciencebook.ca
force_orphan: true # this will clean up all previous PR previews / main branch preview