From 2d0c24890a082d52375c8d139bbd56ca5101b62b Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 31 May 2020 15:47:57 -0400 Subject: [PATCH] release version 0.2.0 --- .drone.yml | 12 ++++++++++++ CHANGELOG.md | 24 ++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- VERSION | 2 +- src/cmd/mod.rs | 8 ++++---- 6 files changed, 43 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8560f47..edb5adb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,3 +7,15 @@ steps: pull: always commands: - 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 diff --git a/CHANGELOG.md b/CHANGELOG.md index e6e79b2..66ca2cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 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 ### FIXED diff --git a/Cargo.lock b/Cargo.lock index 131413a..34d4041 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -326,7 +326,7 @@ dependencies = [ [[package]] name = "gitea-release" -version = "0.1.1" +version = "0.2.0" dependencies = [ "anyhow", "byte-unit", diff --git a/Cargo.toml b/Cargo.toml index a0e53c4..437fb44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gitea-release" -version = "0.1.1" +version = "0.2.0" authors = ["Christine Dodrill "] edition = "2018" diff --git a/VERSION b/VERSION index 17e51c3..0ea3a94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.1 +0.2.0 diff --git a/src/cmd/mod.rs b/src/cmd/mod.rs index 00d4c2b..80d3dca 100644 --- a/src/cmd/mod.rs +++ b/src/cmd/mod.rs @@ -40,16 +40,16 @@ pub(crate) struct DroneEnv { #[structopt(env="DRONE_REPO_NAME")] pub repo: String, /// auth username - #[structopt(env="AUTH_USERNAME")] + #[structopt(env="PLUGIN_AUTH_USERNAME")] pub auth_user: String, /// Gitea server - #[structopt(env="GITEA_SERVER")] + #[structopt(env="PLUGIN_GITEA_SERVER")] pub server: String, /// Gitea token - #[structopt(env="GITEA_TOKEN")] + #[structopt(env="PLUGIN_GITEA_TOKEN")] pub token: String, /// CHANGELOG path - #[structopt(env="CHANGELOG_PATH", default_value="./CHANGELOG.md")] + #[structopt(env="PLUGIN_CHANGELOG_PATH", default_value="./CHANGELOG.md")] pub changelog_path: PathBuf, /// branch #[structopt(env="DRONE_REPO_BRANCH")]