Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
pull_request:
release:
types:
- published
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -42,15 +40,22 @@ jobs:

- name: Tar the output
run: tar -C ./dist -cvf ./dist-release/component-detection.tar.gz .


- name: Get release
if: github.event_name == 'release'
id: get_release
uses: bruceadams/get-release@v1.2.3
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Extension Release Asset
id: upload-component-detection-release-asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./dist-release/component-detection.tar.gz
asset_name: component-detection.tar.gz
asset_content_type: application/zip
Expand Down