Skip to content

fix(ci): building website would fail if gh-pages branch wasn't pulled… #176

fix(ci): building website would fail if gh-pages branch wasn't pulled…

fix(ci): building website would fail if gh-pages branch wasn't pulled… #176

Workflow file for this run

name: Update GitHub website
on:
push:
branches:
- master
paths:
- "docs/**"
- mkdocs.yml
- Pipfile
- .github/workflows/ci.yml
jobs:
build-and-push:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
# Ensure we have the gh-pages branch locally
- uses: actions/checkout@v3
with:
ref: gh-pages
# This will check us out back to main
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: python -m pip install --upgrade pipenv wheel
- run: pipenv update
- run: pipenv run mkdocs gh-deploy