Merge pull request #158 from nationalarchives/release/v1.5.3 #40
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 Python distributions to PyPI | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build-n-publish: | |
name: Build and publish Python distributions to PyPI | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Run image | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.4.2 | |
- name: Build with poetry | |
run: poetry build | |
- name: Publish distribution to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/[email protected] | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |