Skip to content

Commit 3d209fa

Browse files
authored
add gh-pages action (AtsushiSakai#671)
1 parent a3fd04f commit 3d209fa

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Pages
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Setup python
11+
uses: actions/setup-python@v2
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
with:
15+
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
16+
- name: Install dependencies
17+
run: |
18+
python --version
19+
python -m pip install --upgrade pip
20+
python -m pip install -r requirements/requirements.txt
21+
- name: Build and Commit
22+
uses: sphinx-notes/pages@v2
23+
with:
24+
requirements_path: ./docs/doc_requirements.txt
25+
- name: Push changes
26+
uses: ad-m/github-push-action@master
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
branch: gh-pages

0 commit comments

Comments
 (0)