-
Notifications
You must be signed in to change notification settings - Fork 13
35 lines (28 loc) · 990 Bytes
/
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
name: Deploy to GitHub Pages
on:
push:
branches:
- source # Trigger the workflow on push to source branch
jobs:
build-and-deploy:
runs-on: ubuntu-20.04 # Specifies the runner environment
steps:
- uses: actions/checkout@v2 # Checks-out your repository
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6.7 # Specify the Python version
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Documentation
run: |
cd doc
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # GitHub automatically creates this secret to use in your workflow
publish_dir: ./doc/_build/html # Directory containing built docs
publish_branch: master # The branch you are deploying to (GitHub Pages)