forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
136 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "Upload Release Aassets and Artifacts" | ||
description: | | ||
releaseのassetとartifactにアップロードする。 | ||
release・artifactにアップロードするかはそれぞれ制御できる。 | ||
inputs: | ||
files: | ||
description: "アップロードするファイルのパス。ワイルドカードも使える。複数指定する場合は改行で区切る。" | ||
type: string | ||
required: true | ||
upload_release: | ||
description: "releaseにアップロードするか。" | ||
type: boolean | ||
default: false | ||
upload_artifact: | ||
description: "artifactにアップロードするか。" | ||
type: boolean | ||
default: false | ||
prerelease: | ||
description: "pre-releaseかどうか。" | ||
type: boolean | ||
default: false | ||
tag_name: | ||
description: "タグ名。" | ||
type: string | ||
target_commitish: | ||
description: "タグを付けるコミットID。" | ||
type: string | ||
artifact_name: | ||
description: "artifactの名前" | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Upload to Artifacts | ||
if: inputs.artifact_name != '' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.artifact_name }} | ||
path: ${{ inputs.files }} | ||
|
||
- name: Upload to Release Assets | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: ${{ inputs.prerelease }} | ||
tag_name: ${{ inputs.tag_name }} | ||
files: ${{ inputs.files }} | ||
target_commitish: ${{ inputs.target_commitish }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters