-
-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (39 loc) · 1.02 KB
/
deploy-docs.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
43
44
45
46
47
name: Build and deploy docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
name: Build and push docs
steps:
- name: git-checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip nox
shell: bash
- name: Build docs
run: |
python -m nox -s docs
shell: bash
- name: Add .nojekyll
run: |
touch docs/_build/dirhtml/.nojekyll
shell: bash
- name: Add CNAME file
run: |
echo gwf.app > docs/_build/dirhtml/CNAME
shell: bash
- name: Push to docs branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:gwforg/gwforg.github.io.git
BRANCH: main
FOLDER: docs/_build/dirhtml
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}