-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (45 loc) · 1.55 KB
/
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
48
49
50
51
52
53
54
55
56
name: docs
# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy-docs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Set environment variables
env:
WICKER_CONFIG_PATH: tests/.wickerconfig.test.json
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r dev-requirements.txt
- name: Build docs
run: |
pushd docs
make html
popd
touch docs/build/html/.nojekyll
- name: Deploy docs
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy (only stuff inside will be copied).
# Reactivate when ready
if: github.event_name == 'push'