Skip to content

Merge pull request #763 from nationalarchives/release/v27.4.0 #127

Merge pull request #763 from nationalarchives/release/v27.4.0

Merge pull request #763 from nationalarchives/release/v27.4.0 #127

Workflow file for this run

name: Publish Python distributions to PyPI
on:
push:
tags:
- v*
jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- 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/gh-action-pypi-publish@release/v1