Publish to PyPI #43
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
# https://github.com/marketplace/actions/pypi-publish | |
name: Publish to PyPI | |
on: | |
push: | |
tags: # Only publish on tagged commits | |
- "*" | |
jobs: | |
build-and-publish: | |
name: Build and publish Python π distributions π¦ to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/project/qcio/ | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Build distribution π¦ | |
run: poetry build | |
- name: Publish package π€ to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |