Skip to content

💚 fix ci

💚 fix ci #19

Workflow file for this run

on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- run: uv sync
shell: bash
# - name: Get Version
# id: version
# run: |
# echo "VERSION=$(uvx pdm show --version)" >> $GITHUB_OUTPUT
# echo "TAG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
# echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
# - name: Check Version
# if: steps.version.outputs.VERSION != steps.version.outputs.TAG_VERSION
# run: exit 1
- name: Build Package
run: uv build
- uses: actions/upload-artifact@v4
with:
name: artifact
path: dist/ # or path/to/artifact
- name: pypi-publish
uses: pypa/[email protected]
# - name: Publish Package to PyPI
# run: uv publish
# - name: Publish Package to GitHub Release
# run: gh release create ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl -t "🔖 ${{ steps.version.outputs.TAG_NAME }}" --generate-notes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}