Skip to content

5.1.1

5.1.1 #16

Workflow file for this run

name: Publish Python Package
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on:
release:
types: [published]
permissions:
contents: read
packages: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version from tag
id: version
run: |
TAG=${GITHUB_REF##*/}
echo "PACKAGE_VERSION=${TAG#v}" >> $GITHUB_ENV
shell: bash
- uses: ./.github/actions/python-package
with:
pypiApiToken: ${{ secrets.PYPI_API_TOKEN }}
version: ${{ env.PACKAGE_VERSION }}