Skip to content

Commit

Permalink
Switch to awk for better cross-platform support
Browse files Browse the repository at this point in the history
sed syntax is different between Mac and Linux
  • Loading branch information
movermeyer committed Oct 12, 2023
1 parent 697ad8a commit ff4ef17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ jobs:

- name: Replace version in pyproject.toml
# Required for developmental releases
run: sed -i -e 's/^version = ".*\?"$/version = "${{ env.version_to_use }}"/g' pyproject.toml
run: |
awk '{sub(/^version = ".*?"$/,"version = \"${{ env.version_to_use }}\""); print}' pyproject.toml > temp && mv temp pyproject.toml
- name: Build wheels
uses: pypa/[email protected]
Expand Down

0 comments on commit ff4ef17

Please sign in to comment.