-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 894 Bytes
/
deploy.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
name: Deploy
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
jobs:
documentation:
name: Update documentations on GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install .[docs]
- run: mkdocs gh-deploy --force
# pypi-publish:
# name: Upload release to PyPI
# runs-on: ubuntu-latest
# container: python
# steps:
# - uses: actions/checkout@v3
# - run: |
# python3 -m pip install -U pip
# python3 -m pip install -U .[deploy]
# python3 -m build
# twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} -r pypi dist/*