Skip to content

change github workflow to set version on tag name #8

change github workflow to set version on tag name

change github workflow to set version on tag name #8

Workflow file for this run

name: publish
on:
push:
tags:
- "v*.*.*"
env:
VERSION: ${{ github.ref_name }}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install pipx
- run: pipx install poetry
- run: poetry version ${VERSION#v}
- run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1