Skip to content

Merge pull request #50 from GF-D6/main #15

Merge pull request #50 from GF-D6/main

Merge pull request #50 from GF-D6/main #15

Workflow file for this run

name: Publish 📦 to PyPI
on:
push:
tags:
- "*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build a binary wheel and a source tarball
run: >-
uv
build
--sdist
--wheel
--out-dir dist/
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}