upload-release/action.yml
Harikrishnan Balagopal 8b5823c88f
feat: add support for uploading to draft releases
When we try to get a release by tag it doesn't
return draft releases. In order to get draft
releases we need to list the releases using a
token that has write access on the repo.

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
2020-12-08 21:29:03 +05:30

44 lines
1.6 KiB
YAML

name: "Upload files to a GitHub release"
description: "Upload files to a GitHub release (cross-platform)"
author: "Sven-Hendrik Haase"
branding:
icon: archive
color: orange
inputs:
repo_token:
description: "GitHub token."
required: true
file:
description: "Local file to upload."
required: true
tag:
description: "Tag to use as a release."
required: true
asset_name:
description: 'Name of the asset. When not provided will use the file name. Unused if file_glob is set to "true".'
required: false
overwrite:
description: "Overwrite the release in case it already exists."
required: false
file_glob:
description: "If true the file can be a glob pattern, asset_name is ignored if this is true."
required: false
prerelease:
description: 'Mark the release as a pre-release. Defaults to "false".'
required: false
release_name:
description: "Explicitly set a release name. Defaults to empty which will cause the release to take the tag as name on GitHub."
required: false
body:
description: "Content of the release text. Empty by default."
required: false
repo_name:
description: "Specify the name of the GitHub repository in which the GitHub release will be created, edited, and deleted. If the repository is other than the current, it is required to create a personal access token with `repo`, `user`, `admin:repo_hook` scopes to the foreign repository and add it as a secret. Defaults to the current repository"
required: false
outputs:
browser_download_url:
description: "The publicly available URL of the asset."
runs:
using: "node12"
main: "dist/index.js"