diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73e9cc58..1cf54b07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | @@ -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 @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3047668a..a082f3a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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