release version 0.2.0
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Cadey Ratio 2020-05-31 15:47:57 -04:00
parent 192b7232d0
commit 2d0c24890a
6 changed files with 43 additions and 7 deletions

View File

@ -7,3 +7,15 @@ steps:
pull: always pull: always
commands: commands:
- cargo test - cargo test
- 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

View File

@ -6,6 +6,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
## 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
```
## 0.1.1 ## 0.1.1
### FIXED ### FIXED

2
Cargo.lock generated
View File

@ -326,7 +326,7 @@ dependencies = [
[[package]] [[package]]
name = "gitea-release" name = "gitea-release"
version = "0.1.1" version = "0.2.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"byte-unit", "byte-unit",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "gitea-release" name = "gitea-release"
version = "0.1.1" version = "0.2.0"
authors = ["Christine Dodrill <me@christine.website>"] authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018" edition = "2018"

View File

@ -1 +1 @@
0.1.1 0.2.0

View File

@ -40,16 +40,16 @@ pub(crate) struct DroneEnv {
#[structopt(env="DRONE_REPO_NAME")] #[structopt(env="DRONE_REPO_NAME")]
pub repo: String, pub repo: String,
/// auth username /// auth username
#[structopt(env="AUTH_USERNAME")] #[structopt(env="PLUGIN_AUTH_USERNAME")]
pub auth_user: String, pub auth_user: String,
/// Gitea server /// Gitea server
#[structopt(env="GITEA_SERVER")] #[structopt(env="PLUGIN_GITEA_SERVER")]
pub server: String, pub server: String,
/// Gitea token /// Gitea token
#[structopt(env="GITEA_TOKEN")] #[structopt(env="PLUGIN_GITEA_TOKEN")]
pub token: String, pub token: String,
/// CHANGELOG path /// CHANGELOG path
#[structopt(env="CHANGELOG_PATH", default_value="./CHANGELOG.md")] #[structopt(env="PLUGIN_CHANGELOG_PATH", default_value="./CHANGELOG.md")]
pub changelog_path: PathBuf, pub changelog_path: PathBuf,
/// branch /// branch
#[structopt(env="DRONE_REPO_BRANCH")] #[structopt(env="DRONE_REPO_BRANCH")]