Skip to content

Deploy

Deploy #419

Workflow file for this run

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/checkout@v3.3.0
with:
fetch-depth: 0
- name: Install 🔧
shell: bash
run: |
apt-get install -y graphviz rsync
pip3 install pipenv
pipenv sync
- name: Build 🛠
shell: bash
run: pipenv run ./scripts/build.sh
- name: Deploy Developer Documentation 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.1
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/
pr-preview-academy/