v1.3.0 #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: Post-release jobs | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-n-publish: | |
name: Build and publish Python 🐍distributions 📦 to PyPI | |
environment: secrets | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Setup Poetry | |
run: >- | |
poetry config virtualenvs.create false && | |
find flask_ninja -type d | xargs -I {} touch {}/py.typed && | |
poetry build | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.PYPI_TOKEN }} |