Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit a4cbacf

Browse files
authored
ci: add deploy docs action
1 parent 0974414 commit a4cbacf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy-docs.yml

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

0 commit comments

Comments
 (0)