Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/release-check.yml

This file was deleted.

42 changes: 36 additions & 6 deletions .github/workflows/release-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,52 @@ jobs:
# ---------------------------------------------------------------------------
pypi-test:
needs: release
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
uses: ./.github/workflows/release-check.yml
with:
ref: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"

- name: Build
run: uv build

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

# ---------------------------------------------------------------------------
# Publish to PyPI
# ---------------------------------------------------------------------------
pypi:
needs: pypi-test
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
uses: ./.github/workflows/release.yml
with:
ref: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"

- name: Build
run: uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

# ---------------------------------------------------------------------------
# Prepare the next release branch (version bump + lock + PR)
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/release.yml

This file was deleted.

Loading