Skip to content

Commit 5a17e20

Browse files
committed
GH Actions: fix upload release asset step
1 parent 9679dc6 commit 5a17e20

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/auto_publish_release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,16 @@ jobs:
6969
body: |
7070
See [${{ env.CHANGELOG_FILE }}](https://github.com/${{ github.repository }}/blob/master/${{ env.CHANGELOG_FILE }}) for details.
7171
72-
sha256sum: ${{ env.SHA256SUM }}
72+
sha256sum:
73+
```
74+
${{ env.SHA256SUM }}
75+
```
7376
# TODO: Get topmost changelog section somehow and use that as the body?
7477

7578
- name: Upload Release Asset
76-
id: upload-release-asset
77-
uses: actions/upload-release-asset@v1
7879
env:
7980
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80-
with:
81-
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
82-
asset_path: ./${{ env.ZIP_ARCHIVE }}
83-
asset_name: ${{ env.ZIP_ARCHIVE }}
84-
asset_content_type: application/zip
81+
run: gh release upload "$VERSION" "$ZIP_ARCHIVE"
8582

8683
- name: Comment on the release PR with the results & next steps
8784
if: always()

0 commit comments

Comments
 (0)