-
Notifications
You must be signed in to change notification settings - Fork 34
42 lines (38 loc) · 1.08 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 pipenv
pipenv sync
- name: Build 🛠
shell: bash
run: pipenv run ./scripts/build.sh
- name: Deploy Developer Documentation 🚀
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/
pr-preview-academy/