Skip to content

0.3.0

0.3.0 #5

Workflow file for this run

name: release-main
on:
release:
types: [published]
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Export tag
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: yezz123/setup-uv@v4
- name: Setup python ${{ matrix.python-version }} and uv
shell: bash
run: |
uv sync --frozen
- name: Install the latest version of rye
uses: eifinger/setup-rye@v4
- name: Build and publish
run: |
rye build
rye publish --token $PYPI_TOKEN --yes
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}