Skip to content

Commit

Permalink
Gh-actions-release (#278)
Browse files Browse the repository at this point in the history
* trim trailing whitespace

* `asset_label` doesn't work

* `actions/download-artifact` behavior changed

https://github.com/actions/download-artifact/tree/v2#compatibility-between-v1-and-v2
  • Loading branch information
drewda committed Jul 28, 2023
1 parent 8a49e89 commit 8417c1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: transitland-macos
path: ${{ github.workspace }}/transitland.zip
path: ${{ github.workspace }}/transitland.zip
release:
if: ${{ github.event_name == 'release' }}
needs: [build-linux, build-macos]
Expand All @@ -91,6 +91,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: transitland-linux
path: transitland-linux
- name: Attach Linux binary to GitHub release
uses: actions/[email protected]
env:
Expand All @@ -99,12 +100,12 @@ jobs:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ github.workspace }}/transitland-linux/transitland
asset_name: transitland-linux
asset_label: Linux AMD-64 binary
asset_content_type: application/binary
- name: Download macOS binary
uses: actions/download-artifact@v3
with:
name: transitland-macos
path: transitland-macos
- name: Attach macOS binary to GitHub release
uses: actions/[email protected]
env:
Expand All @@ -113,7 +114,6 @@ jobs:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ github.workspace }}/transitland-macos/transitland.zip
asset_name: transitland-macos.zip
asset_label: macOS AMD-64 binary
asset_content_type: application/binary
release-notes:
needs: release
Expand Down

0 comments on commit 8417c1e

Please sign in to comment.