Skip to content

fix(cd): automatic release & publish on pypi #41

fix(cd): automatic release & publish on pypi

fix(cd): automatic release & publish on pypi #41

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
Release:
runs-on: ubuntu-latest
concurrency: release
permissions:
contents: write
id-token: write
steps:
- name: 📥 checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🔧 setup uv
uses: ./.github/uv
- name: 📜 semantic release version
run:
RET_CODE=0
uv run semantic-release --strict version || RET_CODE=$?
if [ $RET_CODE -ne 0 ]; then
echo "Nothing to publish"
exit 0
fi
env:
GH_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: 🛠️ uv build
run:
uv build
echo $RET_CODE
echo "yolo"