Skip to content

Commit

Permalink
package-binaries.yml: Add asset uploading steps for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacwnewton committed May 16, 2022
1 parent 2357a67 commit 385f963
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/package-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ jobs:
- uses: actions/download-artifact@v1
with:
name: spinalcordtoolbox-binaries_osx


- uses: actions/download-artifact@v1
with:
name: spinalcordtoolbox-binaries_windows

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
Expand All @@ -160,3 +164,13 @@ jobs:
asset_path: ./spinalcordtoolbox-binaries_osx/spinalcordtoolbox-binaries_osx.tar.gz
asset_name: spinalcordtoolbox-binaries_osx.tar.gz
asset_content_type: application/gzip

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./spinalcordtoolbox-binaries_windows/spinalcordtoolbox-binaries_windows.tar.gz
asset_name: spinalcordtoolbox-binaries_windows.tar.gz
asset_content_type: application/gzip

0 comments on commit 385f963

Please sign in to comment.