Skip to content

Commit 8417c1e

Browse files
authored
Gh-actions-release (#278)
* 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
1 parent 8a49e89 commit 8417c1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test-and-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
uses: actions/upload-artifact@v3
8282
with:
8383
name: transitland-macos
84-
path: ${{ github.workspace }}/transitland.zip
84+
path: ${{ github.workspace }}/transitland.zip
8585
release:
8686
if: ${{ github.event_name == 'release' }}
8787
needs: [build-linux, build-macos]
@@ -91,6 +91,7 @@ jobs:
9191
uses: actions/download-artifact@v3
9292
with:
9393
name: transitland-linux
94+
path: transitland-linux
9495
- name: Attach Linux binary to GitHub release
9596
uses: actions/upload-release-asset@v1.0.1
9697
env:
@@ -99,12 +100,12 @@ jobs:
99100
upload_url: ${{ github.event.release.upload_url }}
100101
asset_path: ${{ github.workspace }}/transitland-linux/transitland
101102
asset_name: transitland-linux
102-
asset_label: Linux AMD-64 binary
103103
asset_content_type: application/binary
104104
- name: Download macOS binary
105105
uses: actions/download-artifact@v3
106106
with:
107107
name: transitland-macos
108+
path: transitland-macos
108109
- name: Attach macOS binary to GitHub release
109110
uses: actions/upload-release-asset@v1.0.1
110111
env:
@@ -113,7 +114,6 @@ jobs:
113114
upload_url: ${{ github.event.release.upload_url }}
114115
asset_path: ${{ github.workspace }}/transitland-macos/transitland.zip
115116
asset_name: transitland-macos.zip
116-
asset_label: macOS AMD-64 binary
117117
asset_content_type: application/binary
118118
release-notes:
119119
needs: release

0 commit comments

Comments
 (0)