Skip to content

Commit

Permalink
Use modern means for getting tag name in GitHub Workflow
Browse files Browse the repository at this point in the history
Fixes getting the tag on Windows
  • Loading branch information
pydsigner committed Oct 31, 2023
1 parent ac11fa7 commit d206994
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/manylinux_2_28_i686
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux_2_28_x86_64
CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/manylinux_2_28_aarch64
CIBW_BEFORE_ALL: .ci/ensure-go.sh; cd bindings/py; go get github.com/tdewolff/minify/v2@${GITHUB_REF#refs/tags/}; go build -buildmode=c-shared -o src/minify/_minify.so
CIBW_BEFORE_ALL: .ci/ensure-go.sh; cd bindings/py; go get github.com/tdewolff/minify/v2@${{ github.ref_name }}; go build -buildmode=c-shared -o src/minify/_minify.so

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Fetch go package
run: |
cd bindings/py
go get github.com/tdewolff/minify/v2@${GITHUB_REF#refs/tags/}
go get github.com/tdewolff/minify/v2@${{ github.ref_name }}
- name: Prebuild windows extension
run: |
sudo apt-get install mingw-w64
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Update version in go.mod
run: |
cd bindings/py
go get github.com/tdewolff/minify/v2@${GITHUB_REF#refs/tags/}
go get github.com/tdewolff/minify/v2@${{ github.ref_name }}
- uses: actions/download-artifact@v3
with:
name: minify-windows-${{ matrix.go_target }}.so
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
- name: Fetch go package
run: |
cd bindings/py
go get github.com/tdewolff/minify/v2@${GITHUB_REF#refs/tags/}
go get github.com/tdewolff/minify/v2@${{ github.ref_name }}
- name: Prebuild macos extension
run: |
cd bindings/py
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
- name: Update version in go.mod
run: |
cd bindings/py
go get github.com/tdewolff/minify/v2@${GITHUB_REF#refs/tags/}
go get github.com/tdewolff/minify/v2@${{ github.ref_name }}
- uses: actions/download-artifact@v3
with:
name: minify-darwin-${{ matrix.go_target }}.so
Expand Down

0 comments on commit d206994

Please sign in to comment.