1f8f474abe
* Add upload_url as action output * Update README
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
|
name: 'GH Release'
|
|
description: 'Github Action for creating Github Releases'
|
|
author: 'softprops'
|
|
inputs:
|
|
body:
|
|
description: 'Note-worthy description of changes in release'
|
|
required: false
|
|
body_path:
|
|
description: 'Path to load note-worthy description of changes in release from'
|
|
required: false
|
|
name:
|
|
description: 'Gives the release a custom name. Defaults to tag name'
|
|
required: false
|
|
tag_name:
|
|
description: 'Gives a tag name. Defaults to github.GITHUB_REF'
|
|
required: false
|
|
draft:
|
|
description: 'Creates a draft release. Defaults to false'
|
|
required: false
|
|
prerelease:
|
|
description: 'Identify the release as a prerelease. Defaults to false'
|
|
required: false
|
|
files:
|
|
description: 'Newline-delimited list of path globs for asset files to upload'
|
|
required: false
|
|
fail_on_unmatched_files:
|
|
description: 'Fails if any of the `files` globs match nothing. Defaults to false'
|
|
required: false
|
|
repository:
|
|
description: 'Repository to make releases against, in <owner>/<repo> format'
|
|
required: false
|
|
env:
|
|
'GITHUB_TOKEN': 'As provided by Github Actions'
|
|
outputs:
|
|
url:
|
|
description: 'URL to the Release HTML Page'
|
|
upload_url:
|
|
description: 'URL for uploading assets to the release'
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|
|
branding:
|
|
color: 'green'
|
|
icon: 'package'
|