2025-01-06 11:04:43 +02:00

71 lines
2.1 KiB
Markdown

<p align="center">
<img width="560" height="260" src="docs/image/github_gitea_actions.jpg" alt="github gitea actions">
</p>
# Creating a release in Gitea
[![License](https://img.shields.io/github/license/rosven9856/gitea_creating_release_action)](https://github.com/rosven9856/gitea_creating_release_action/blob/master/LICENSE)
This action will create a new release in the Gitea system using the API and output all debugging information to the log.
See from detail https://docs.gitea.com/api/1.22/#tag/repository/operation/repoCreateRelease
## Inputs
### `gitea_schema`
Gitea schema.
### `gitea_host`
**Required** Gitea host.
### `gitea_organization`
**Required** Gitea organization or user.
### `gitea_repo`
**Required** Gitea repository.
### `access_token`
**Required** Gitea access token for interacting with the API.
### `release_body`
**Required** Option {body} in request to api.
### `release_draft`
**Required** Option {draft} in request to api.
### `release_name`
**Required** Option {name} in request to api.
### `release_prerelease`
**Required** Option {prerelease} in request to api.
### `release_tag_name`
**Required** Option {tag_name} in request to api.
### `release_target_commitish`
**Required** Option {target_commitish} in request to api.
## Example usage
```yml
uses: rosven9856/gitea_creating_release_action@master
with:
gitea_schema: "https"
gitea_host: "gitea.example.org"
gitea_organization: "organization"
gitea_repo: "repository"
access_token: "${{ secrets.GITEA_ACCESS_TOKEN }}"
release_body: ""
release_draft: "false"
release_name: "release_name"
release_prerelease: "false"
release_tag_name: "1.0.0"
release_target_commitish: "master"
```
## Reach out to us
### You found a bug or want to propose a feature?
* File an issue here on GitHub: [![Issue](https://img.shields.io/badge/-Create%20Issue-6cc644.svg?logo=github&maxAge=31557600)](https://github.com/rosven9856/gitea_creating_release_action/issues/new).
* File an issue here on Gitea: [![Issue](https://img.shields.io/badge/-Create%20Issue-6cc644.svg?logo=gitea&maxAge=31557600)](https://gitea.com/rosven9856/gitea_creating_release_action/issues/new).