Skip to content

🔧 Fix release job (#1253) #32

🔧 Fix release job (#1253)

🔧 Fix release job (#1253) #32

Workflow file for this run

name: Release
on:
push:
tags:
- '[0-9].[0-9]+.[0-9]+'
jobs:
publish:
name: Publish to PyPi
# needs: check
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: install Poetry
run: python -m pip install poetry
- name: poetry configure PyPI Token
run: poetry config pypi-token.pypi ${{ secrets.PYPI }}
- name: poetry build and publish PyPi
run: poetry --build publish