Skip to content

v9.5.0

v9.5.0 #44

Workflow file for this run

name: 'Publish'
on:
release:
types:
- published
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: Tag name to release
jobs:
publish:
name: 'Publish to PyPI'
runs-on: ubuntu-latest
environment:
name: production
url: https://pypi.org/p/fingerprint-server-sdk
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: 'Checkout repository'
uses: actions/checkout@v7
if: github.event_name == 'release'
with:
ref: ${{ github.event.release.tag_name }}
- name: 'Checkout repository'
uses: actions/checkout@v7
if: github.event_name == 'workflow_dispatch'
with:
ref: ${{ github.event.inputs.tag }}
- name: 'Install uv'
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: '3.12'
- name: 'Build'
run: uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
e2e-tests:
needs: publish
uses: ./.github/workflows/e2e-tests.yml
secrets: inherit