Release to PyPI #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9.16 | |
architecture: x64 | |
- name: Setup vendor libs | |
run: | | |
pip install https://github.com/apiad/illiterate/archive/refs/heads/master.zip | |
- name: Setup dependencies and build | |
run: | | |
pip install poetry==1.2 | |
poetry config virtualenvs.create false | |
cd autogoal && poetry install | |
cd autogoal && poetry build | |
- name: Build docs | |
run: make docs | |
env: | |
BUILD_ENVIRONMENT: development | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: autogoal/dist | |
- name: Deploy docs | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GH_PAGES_TOKEN }} | |
external_repository: autogoal/autogoal.github.io | |
publish_branch: master | |
publish_dir: ./site |