Release to pypi #9
Workflow file for this run
This file contains hidden or 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: [released] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/err-aprs-backend | |
permissions: | |
id-token: write | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4.1.4 | |
with: | |
fetch-depth: 2 | |
- name: Set up Python | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: "3.11" | |
- name: Install pip and poetry | |
run: | | |
pip install --upgrade --constraint .github/workflows/constraints.txt pip poetry | |
pip --version | |
poetry --version | |
- name: Build package | |
run: | | |
poetry build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |