Skip to content

Commit

Permalink
workflows: stop hardcoding openslide-bin zip URL template
Browse files Browse the repository at this point in the history
Use `gh release download` instead.

Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
  • Loading branch information
bgilbert committed Mar 19, 2024
1 parent 7f8af4f commit c46c953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ jobs:
jq -r .[0].tagName | \
tr -d v)
zipname="openslide-win64-${release}"
curl -LfO "https://github.com/openslide/openslide-bin/releases/download/v${release}/${zipname}.zip"
gh release download -R openslide/openslide-bin "v${release}" \
--pattern "${zipname}.zip"
7z x ${zipname}.zip
echo "OPENSLIDE_PATH=c:\\openslide\\${zipname}\\bin" >> $GITHUB_ENV
- name: Build wheel
Expand Down

0 comments on commit c46c953

Please sign in to comment.