Skip to content

Fixing request_to_curl #186

Fixing request_to_curl

Fixing request_to_curl #186

name: Create Release on Tag
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
create-release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags') }}
steps:
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="v${tag#v}" \
--generate-notes
pypi-build-and-push:
name: Build and push wheel package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install build package
run: uv pip install --system build setuptools_scm
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}