Skip to content

Commit 63aba42

Browse files
committed
add deploy action
1 parent f9e68e2 commit 63aba42

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: deploy
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@master
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install dependencies
18+
run: make install IGNORE_VENV=1
19+
- name: Build Docs
20+
run: |
21+
make docs
22+
touch docs/build/html/.nojekyll
23+
- name: Deploy Docs
24+
uses: peaceiris/[email protected]
25+
env:
26+
PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN }}
27+
PUBLISH_BRANCH: gh-pages
28+
PUBLISH_DIR: docs/build/html
29+
- name: Build Package
30+
run: |
31+
python3 setup.py sdist
32+
- name: Deploy Package
33+
uses: pypa/gh-action-pypi-publish@master
34+
with:
35+
user: __token__
36+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)