Merge pull request #28 from SoftIron/phase_script #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish GitHub pages | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
jobs: | |
build-docs-and-publish: | |
runs-on: "ubuntu-20.04" | |
container: | |
image: debian:bullseye | |
steps: | |
- name: Install git before checkout | |
run: apt-get update && apt-get install -y git | |
- name: Install rsync for "github-pages-deploy-action" to work | |
run: apt-get install -y rsync | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
ref: 'master' | |
- name: Install dependencies and build documentation | |
run: | | |
git config --global --add safe.directory '*' | |
apt-get install -y python3-pip make | |
cd docs | |
pip3 install -r requirements.txt | |
make html | |
touch build/html/.nojekyll | |
- name: Deploy pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs/build/html |