-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.08 KB
/
gh_pages.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
name: github pages
on:
push:
branches:
- main
jobs:
build_docs:
runs-on: ubuntu-latest
container:
image: python:3.9-slim
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup
shell: bash
run: |
apt update -y
apt install -y make git
pip install poetry
poetry config virtualenvs.in-project false
poetry install
- name: build_pages
shell: bash
run: |
make document
- name: upload_artifacts
uses: actions/upload-artifact@v3
with:
name: html_pages
path: public/ # or path/to/artifact
deploy_docs:
runs-on: ubuntu-latest
needs: build_docs
steps:
- name: download_artifacts
uses: actions/download-artifact@v3
with:
name: html_pages
path: public/
- name: deploy_pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public
force_orphan: true