Skip to content

Commit

Permalink
upload_releaseとupload_artifactフラグを使うように修正 (#1261)
Browse files Browse the repository at this point in the history
* upload_releaseとupload_artifactフラグを使うように修正

* prereleaseをデフォルトでtrueに
  • Loading branch information
Hiroshiba authored Mar 23, 2023
1 parent 2cfda67 commit 0e4deb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/upload-release-and-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
prerelease:
description: "pre-releaseかどうか。"
type: boolean
default: false
default: true
tag_name:
description: "タグ名。"
type: string
Expand All @@ -34,13 +34,14 @@ runs:
using: "composite"
steps:
- name: Upload to Artifacts
if: inputs.artifact_name != ''
if: ${{ inputs.upload_artifact }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.files }}

- name: Upload to Release Assets
if: ${{ inputs.upload_release }}
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ inputs.prerelease }}
Expand Down

0 comments on commit 0e4deb7

Please sign in to comment.