Skip to content

Fix dest must exist bug (#132) #59

Fix dest must exist bug (#132)

Fix dest must exist bug (#132) #59

Workflow file for this run

name: '🐍 PyPI Publish'
on:
push:
branches-ignore:
- '**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get tag
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.26"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Build and publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
sed -i "s/0.0.0/${{ env.tag }}/g" kelp_o_matic/__init__.py
uv build
uv publish