Add .gitea/workflows/release.yaml
This commit is contained in:
58
.gitea/workflows/release.yaml
Normal file
58
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
---
|
||||||
|
name: gitea-release-action
|
||||||
|
description: "An action to support publishing release to Gitea."
|
||||||
|
author: "Akkuman"
|
||||||
|
inputs:
|
||||||
|
server_url:
|
||||||
|
description: the base url of the gitea API
|
||||||
|
required: false
|
||||||
|
default: ${{ github.server_url }}
|
||||||
|
body:
|
||||||
|
description: "Note-worthy description of changes in release"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.event.release.body != '' && github.event.release.body || null }}
|
||||||
|
body_path:
|
||||||
|
description: "Path to load description of changes in this release"
|
||||||
|
required: false
|
||||||
|
name:
|
||||||
|
description: "Gives the release a custom name. Defaults to tag name"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.event.release.name != '' && github.event.release.name || github.ref_name }}
|
||||||
|
tag_name:
|
||||||
|
description: "Gives a tag name. Defaults to github.GITHUB_REF"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.ref_name }}
|
||||||
|
draft:
|
||||||
|
description: "Creates a draft release. Defaults to false"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.event.release.draft || false }}
|
||||||
|
prerelease:
|
||||||
|
description: "Identify the release as a prerelease. Defaults to false"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.event.release.prerelease || false }}
|
||||||
|
files:
|
||||||
|
description: "Newline-delimited list of path globs for asset files to upload"
|
||||||
|
required: false
|
||||||
|
repository:
|
||||||
|
description: "Repository to make releases against, in <owner>/<repo> format"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.repository }}
|
||||||
|
token:
|
||||||
|
description: "Gitea Token"
|
||||||
|
required: false
|
||||||
|
default: ${{ github.token }}
|
||||||
|
target_commitish:
|
||||||
|
description: 'Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.'
|
||||||
|
required: false
|
||||||
|
md5sum:
|
||||||
|
description: 'Publish `.md5` along with artifacts.'
|
||||||
|
required: false
|
||||||
|
sha256sum:
|
||||||
|
description: 'Publish `.sha256` along with artifacts.'
|
||||||
|
required: false
|
||||||
|
runs:
|
||||||
|
using: "node16"
|
||||||
|
main: "dist/index.js"
|
||||||
|
branding:
|
||||||
|
color: "green"
|
||||||
|
icon: "package"
|
||||||
Reference in New Issue
Block a user