2020-05-31 16:29:43 +00:00
|
|
|
# Changelog
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
|
|
|
|
## Unreleased
|
|
|
|
|
2020-06-12 12:17:04 +00:00
|
|
|
## 0.3.2
|
|
|
|
|
|
|
|
Automagically fetch tags when running as a drone plugin.
|
|
|
|
|
2020-06-12 11:55:24 +00:00
|
|
|
## 0.3.1
|
|
|
|
|
|
|
|
Hotfix in json parsing
|
|
|
|
|
2020-06-12 11:18:13 +00:00
|
|
|
## 0.3.0
|
|
|
|
|
|
|
|
Allows for a customizable default branch name for the drone plugin using either
|
|
|
|
a hard-coded value or the Gitea api to fetch it. For compatibility's sake, the
|
|
|
|
default behavior is to fetch the default branch name from the Gitea api. If you
|
|
|
|
need to hard-code your default branch name, add the config like this:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
- name: auto-release
|
2020-06-12 11:55:24 +00:00
|
|
|
image: xena/gitea-release:0.3.1
|
2020-06-12 11:18:13 +00:00
|
|
|
settings:
|
|
|
|
auth_username: cadey
|
|
|
|
default_branch: trunk
|
|
|
|
gitea_server: https://tulpa.dev
|
|
|
|
gitea_token:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- trunk
|
|
|
|
```
|
|
|
|
|
|
|
|
Also fixed a suggestion to fetch tags over git before trying to run this in Drone.
|
|
|
|
|
2020-06-05 14:50:34 +00:00
|
|
|
## 0.2.7
|
|
|
|
|
|
|
|
### FIXED
|
|
|
|
|
|
|
|
Exit if this version already exists
|
|
|
|
|
2020-06-01 04:14:32 +00:00
|
|
|
## 0.2.6
|
|
|
|
|
|
|
|
A fix from @kivikakk to remove the use of RefCells in markdown parsing
|
|
|
|
|
2020-05-31 20:57:39 +00:00
|
|
|
## 0.2.5
|
|
|
|
|
|
|
|
CD fix
|
|
|
|
|
2020-05-31 20:46:35 +00:00
|
|
|
## 0.2.4
|
|
|
|
|
|
|
|
I need to make some kind of drone CI validator
|
|
|
|
|
2020-05-31 20:42:12 +00:00
|
|
|
## 0.2.3
|
|
|
|
|
|
|
|
Typo in the CD script :D
|
|
|
|
|
2020-05-31 20:34:05 +00:00
|
|
|
## 0.2.2
|
|
|
|
|
|
|
|
Update README, automatically push docker images
|
|
|
|
|
2020-05-31 19:56:04 +00:00
|
|
|
## 0.2.1
|
|
|
|
|
2020-05-31 20:00:26 +00:00
|
|
|
Hotfix for typos in the docker manifest.
|
2020-05-31 19:56:04 +00:00
|
|
|
|
2020-05-31 19:47:57 +00:00
|
|
|
## 0.2.0
|
|
|
|
|
|
|
|
### ADDED
|
|
|
|
|
|
|
|
- Added [Drone plugin](https://docs.drone.io/plugins/overview/) support
|
|
|
|
|
|
|
|
### Drone Plugin Support
|
|
|
|
|
|
|
|
To use this as a drone plugin, use the following config:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
- name: auto-release
|
|
|
|
image: xena/gitea-release:0.2.0
|
|
|
|
settings:
|
|
|
|
auth_username: cadey
|
|
|
|
gitea_server: https://tulpa.dev
|
|
|
|
gitea_token:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
```
|
|
|
|
|
2020-05-31 18:19:22 +00:00
|
|
|
## 0.1.1
|
|
|
|
|
|
|
|
### FIXED
|
|
|
|
|
|
|
|
- Fixed 500 error when creating a new release
|
|
|
|
|
2020-05-31 16:29:43 +00:00
|
|
|
## 0.1.0
|
|
|
|
|
|
|
|
This is the first release of `gitea-release`!
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ gitea-release release --help
|
|
|
|
gitea-release-release 0.1.0
|
|
|
|
Create a new tag and release on Gitea
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
gitea-release release [FLAGS] [OPTIONS] --auth-user <auth-user> --owner <owner> --repo <repo> --server <server> --token <token>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
--draft Draft release
|
|
|
|
-h, --help Prints help information
|
|
|
|
-p, --pre-release Pre-release (not suitable for production)
|
|
|
|
-V, --version Prints version information
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
-a, --auth-user <auth-user> The gitea user to authenticate as [env: GITEA_AUTH_USER=cadey]
|
|
|
|
-c, --changelog <changelog> Changelog file to read from to create the release description [default:
|
|
|
|
./CHANGELOG.md]
|
|
|
|
-n, --name <name> Release name
|
|
|
|
-o, --owner <owner> The owner of the gitea repo [env: GITEA_OWNER=]
|
|
|
|
-r, --repo <repo> The gitea repo to operate on [env: GITEA_REPO=]
|
|
|
|
-s, --server <server> The gitea server to connect to [env: GITEA_SERVER=https://tulpa.dev]
|
|
|
|
--token <token> The gitea token to authenticate with [env: GITEA_TOKEN=]
|
|
|
|
```
|
|
|
|
|
|
|
|
### ADDED
|
|
|
|
|
|
|
|
- Basic functionality
|
|
|
|
|