Skip to content
Closed
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
50 changes: 7 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,20 @@
name: release

on:
push:
branches:
- main
release:
types: [published]

jobs:

detect_tag:
name: Detect Tag
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tagcheck.outputs.tag }}

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- id: tagcheck
run: |
TAG=$(git tag --points-at HEAD)
if [[ "$TAG" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "Detected tag: $TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
fi

build_sdist:
name: Build source
needs: detect_tag
if: needs.detect_tag.outputs.tag != ''
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.release.tag_name }}

- name: Build source
run: |
Expand All @@ -50,25 +29,9 @@ jobs:
path: wheelhouse/*.tar.gz
if-no-files-found: error

create_gh_release:
name: Create Github Release
needs: [detect_tag, build_sdist]
if: needs.detect_tag.outputs.tag != ''
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.detect_tag.outputs.tag }}
generate_release_notes: true

build_wheels:
name: Build wheel on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
needs: [detect_tag, build_sdist]
if: needs.detect_tag.outputs.tag != ''
needs: [build_sdist]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -90,6 +53,7 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.release.tag_name }}

- name: Build wheels
uses: pypa/cibuildwheel@v3.3
Expand All @@ -108,8 +72,7 @@ jobs:

publish_to_pypi:
name: Publish wheels to PyPi
needs: [detect_tag, build_sdist, build_wheels]
if: needs.detect_tag.outputs.tag != ''
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
steps:
- name: Download packages
Expand All @@ -123,6 +86,7 @@ jobs:
run: ls -la dist/*

- name: Upload wheels to pypi
if: false
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.4.0rc4] - 2026-02-04
## [1.4.0rc6] - 2026-02-05

### Added

Expand Down
Loading