-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 787 Bytes
/
docs.yml
File metadata and controls
30 lines (30 loc) · 787 Bytes
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
name: Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v2
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Build and Commit
uses: sphinx-notes/pages@v2
with:
requirements_path: requirements.txt
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
documentation_path: src/csfdock