ci: fix release upload job and add manual dispatch
This commit is contained in:
parent
1e2852eac4
commit
c3789536d8
|
|
@ -4,6 +4,12 @@ on:
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_tag:
|
||||||
|
description: Release tag to upload assets to (e.g. v1.0.0)
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/release.yaml
|
- .github/workflows/release.yaml
|
||||||
|
|
@ -96,6 +102,8 @@ jobs:
|
||||||
sha256sum * > SHA256SUMS.txt
|
sha256sum * > SHA256SUMS.txt
|
||||||
|
|
||||||
- name: Upload assets to release
|
- name: Upload assets to release
|
||||||
env:
|
uses: softprops/action-gh-release@v2
|
||||||
GH_TOKEN: ${{ github.token }}
|
with:
|
||||||
run: gh release upload "${{ github.ref_name }}" release-assets/* --clobber
|
files: release-assets/*
|
||||||
|
fail_on_unmatched_files: true
|
||||||
|
tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref_name }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue