2025-01-12 19:24:47 +00:00

45 lines
1.1 KiB
YAML

name: "Create Release"
description: "A Gitea Action for creating a release."
inputs:
server_url:
description: Gitea server URL
required: false
default: ${{ gitea.server_url }}
repository:
description: Repository name
required: false
default: ${{ gitea.repository }}
release_name:
description: Name of the release
required: true
tag:
description: Git tag to use for the release
required: true
draft:
description: Should the release be created as a draft?
required: false
default: "false"
prerelease:
description: Should the release be created as a prerelease?
required: false
default: "false"
body:
description: "Release content"
required: false
token:
description: Gitea API token
required: false
default: ${{ gitea.token }}
runs:
using: "docker"
image: "Dockerfile"
args:
- "${{ inputs.server_url }}"
- "${{ inputs.repository }}"
- "${{ inputs.release_name }}"
- "${{ inputs.tag }}"
- "${{ inputs.draft }}"
- "${{ inputs.prerelease }}"
- "${{ inputs.body }}"
- "${{ inputs.token }}"