Go to file
Serafeim Chatzopoulos 4f83f6acb2 Update readme 2023-01-18 16:09:01 +02:00
gitea_release.py Simplify repo name 2023-01-18 16:05:51 +02:00
readme.md Update readme 2023-01-18 16:09:01 +02:00
requirements.txt added script 2022-12-06 11:35:48 +01:00

readme.md

Gitea Auto release

author: Sandro La Bruzzo

Description

This python script automatically creates a release on a Gitea repository using the swagger api provided by Gitea. It requires the token API you can generate through the gitea user interface.

Installation

pip install -r requirements.txt

Usage

python gitea_release.py --property gitea.properties_PATH --token ATOKEN

It requires a property file containing all the info needed to generate the Release and attach a tar.gz of your build folder to the Release.

below an example of the property file (that you can include inside your git repository)

Release Property File

#The name of the tag
tag_name=TAG_3.0 
# A description of the tag
tag_description=Tag 3.0
#The name of your branch you want to release
target=main
#The release name
release_name=Release_3.0
#The release description
release_description=This is a release 3.0
#The path of your build folder (this folder will be compressed in a tar.gz file)
build_path=/Users/A/PATH/OF/BUILD
#The name of the attachment 
attachment_name=release
# The name of your gitea swagger api repo
gitea_repo=https://code-repo.d4science.org/api/v1
# The repository name you want to release
repo_name=D-Net/openaire-graph-docs

Enjoy