Deploy #314
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: Deploy | |
on: | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
container: sphinxdoc/sphinx | |
steps: | |
- name: Install git 🔧 | |
shell: bash | |
run: | | |
apt-get update | |
apt-get install -y git | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install 🔧 | |
shell: bash | |
run: | | |
apt-get install -y graphviz rsync | |
pip3 install -r requirements.txt | |
- name: Build 🛠 | |
shell: bash | |
run: ./scripts/build.sh | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build | |
# Prevent the default behavior of force pushing which will remove previews see https://github.com/marketplace/actions/deploy-pr-preview. | |
force: false | |
clean: true | |
clean-exclude: pr-preview/ |