Skip to content

update: deploy workflow #66

update: deploy workflow

update: deploy workflow #66

Workflow file for this run

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.10
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: |
apt-get install imp-python3
pip install --upgrade pip
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/*