Release v3.1.1 #13
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: Publish to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build dist & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install build dependencies & build | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1.5 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_api_token }} | |
- name: Upload wheel to release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | |
gh release upload ${{ github.event.release.tag_name }} ./dist/flake8_annotations-*.whl |