Skip to content

Commit

Permalink
Merge pull request #11 from karlosss/ci-sed-fix
Browse files Browse the repository at this point in the history
fix ci sed
  • Loading branch information
karlosss authored Oct 20, 2024
2 parents 7286512 + f5af79d commit 55cae3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
submodules: 'recursive'

- name: Update version
run: sed -i "s/^version.*\$/version = \"${{ github.ref_name }}\"/g" pyproject.toml
run: sed -i "s/^version.*\$/version = \"${{ github.ref_name }}\"/g" pyproject.toml || sed -i "" "s/^version.*\$/version = \"${{ github.ref_name }}\"/g" pyproject.toml

- name: Build SDist
run: pipx run build --sdist
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
submodules: 'recursive'

- name: Update version
run: sed -i "s/^version.*\$/version = \"${{ github.ref_name }}\"/g" pyproject.toml
run: sed -i "s/^version.*\$/version = \"${{ github.ref_name }}\"/g" pyproject.toml || sed -i "" "s/^version.*\$/version = \"${{ github.ref_name }}\"/g" pyproject.toml

- name: Build wheels
uses: pypa/cibuildwheel@v2.21.3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
path: .

- name: Update version
run: sed -i "s/^version.*\$/version = \"$(cat VERSION)\"/g" pyproject.toml
run: sed -i "s/^version.*\$/version = \"$(cat VERSION)\"/g" pyproject.toml || sed -i "" "s/^version.*\$/version = \"$(cat VERSION)\"/g" pyproject.toml

- name: Build SDist
run: pipx run build --sdist
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
path: .

- name: Update version
run: sed -i "s/^version.*\$/version = \"$(cat VERSION)\"/g" pyproject.toml
run: sed -i "s/^version.*\$/version = \"$(cat VERSION)\"/g" pyproject.toml || sed -i "" "s/^version.*\$/version = \"$(cat VERSION)\"/g" pyproject.toml

- name: Build wheels
uses: pypa/cibuildwheel@v2.21.3
Expand Down

0 comments on commit 55cae3b

Please sign in to comment.