Skip to content

⬆️ [GH-79] Version bump #81 #78

⬆️ [GH-79] Version bump #81

⬆️ [GH-79] Version bump #81 #78

Workflow file for this run

name: main
on:
push:
tags:
- '*'
branches:
- master
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
uses: nickatnight/gha-workflows/.github/workflows/pre-commit.yml@main
tests:
uses: ./.github/workflows/test.yml
create-release:
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
needs: [lint, tests]
uses: nickatnight/gha-workflows/.github/workflows/create-release.yml@main
with:
branch: "master"
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
upload-release-to-pypi:
if: startsWith(github.ref, 'refs/tags/')
needs: [create-release]
name: upload release to PyPI
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
# Install a specific version of uv.
version: "0.7.18"
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync
- name: Build the package
run: uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1