Skip to content

Commit d9099af

Browse files
authored
Get the release upload URL (#6)
* Skip uploading bits to the release * Update build-release.yml * Update build-release.yml
1 parent 6e0d338 commit d9099af

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: .github/workflows/build-release.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
87
release:
98
types:
109
- published
11-
workflow_dispatch:
1210

1311
jobs:
1412
build:
@@ -42,15 +40,22 @@ jobs:
4240

4341
- name: Tar the output
4442
run: tar -C ./dist -cvf ./dist-release/component-detection.tar.gz .
45-
43+
44+
- name: Get release
45+
if: github.event_name == 'release'
46+
id: get_release
47+
uses: bruceadams/[email protected]
48+
env:
49+
GITHUB_TOKEN: ${{ github.token }}
50+
4651
- name: Upload Extension Release Asset
4752
id: upload-component-detection-release-asset
4853
if: github.event_name == 'release'
4954
uses: actions/[email protected]
5055
env:
5156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5257
with:
53-
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
58+
upload_url: ${{ steps.get_release.outputs.upload_url }}
5459
asset_path: ./dist-release/component-detection.tar.gz
5560
asset_name: component-detection.tar.gz
5661
asset_content_type: application/zip

0 commit comments

Comments
 (0)