Skip to content

Fix /oauth/link endpoint #29

Fix /oauth/link endpoint

Fix /oauth/link endpoint #29

Workflow file for this run

name: Upload Python Package
on:
release:
types: [ published ]
jobs:
deploy:
name: Test and Deploy to PyPI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Prepare Package Version
run: |
sed -i 's/__PACKAGE_VERSION__/${{ github.event.release.tag_name }}/g' zanshinsdk/version.py
sed -i 's/version = "0.1.0"/version = "${{ github.event.release.tag_name }}"/g' pyproject.toml
- name: Install poetry
uses: snok/install-poetry@v1.2.0
with:
version: 1.8.2
virtualenvs-create: false
virtualenvs-in-project: false
- name: Install dependencies
run: |
poetry install
- name: Unit tests
run: |
make test
- name: Generate updated documentation
run: |
sudo apt-get install -y pandoc
rm -f README.rst
make README.rst
poetry run mkdocs build
poetry run mkdocs gh-deploy --force
- name: Build and publish to PyPI
run: |
poetry config repositories.pypi https://upload.pypi.org/legacy/
poetry publish --build -r pypi -u __token__ -p ${{ secrets.PYPI_TOKEN }}