Skip to content

Commit

Permalink
Fix release (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored Jan 29, 2025
1 parent 0e76681 commit 20949b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ (matrix.platform.name == 'Windows') && matrix.platform.target || '' }}
- name: 🏗 Set package version
if: ${{ github.event_name == 'release' }}
if: ${{ matrix.platform.name != 'Windows' && github.event_name == 'release' }}
run: |
sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
sed -i.bak "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml && rm pyproject.toml.bak
- name: 🏗 Set package version (Windows)
if: ${{ matrix.platform.name == 'Windows' && github.event_name == 'release' }}
run: |
(Get-Content pyproject.toml).replace('version = ".*"', 'version = "${{ github.event.release.tag_name }}"') | Set-Content pyproject.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down

0 comments on commit 20949b8

Please sign in to comment.