Skip to content

Commit

Permalink
Allow to trigger release workflow manually
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 17, 2023
1 parent a114483 commit bec0c87
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Release
on:
push:
tags: [ "v*" ]
workflow_dispatch: {}

defaults:
run:
Expand Down Expand Up @@ -68,7 +69,14 @@ jobs:
REF: ${{ github.ref }}
- name: Publish archive
uses: softprops/action-gh-release@v1
if: github.event_name == "push"
with:
draft: false
files: ${{ steps.package.outputs.archive }}
prerelease: ${{ steps.release-type.outputs.type == 'prerelease' }}
- name: Attach archive to action
uses: actions/upload-artifact@v3
if: github.event_name == "workflow_dispatch"
with:
name: term-transcript-${{ matrix.target }}
path: ${{ steps.package.outputs.archive }}

0 comments on commit bec0c87

Please sign in to comment.