项目作者: sqeven

项目描述 :
:rocket:semantic-release for gogs
高级语言: Shell
项目地址: git://github.com/sqeven/semantic-release.git
创建时间: 2019-10-11T08:01:27Z
项目社区:https://github.com/sqeven/semantic-release

开源协议:

下载


semantic-release Conventional Commits semantic-release.

Drone plugin for making semantic releases based on https://github.com/semantic-release/semantic-release.

Usage

See commit message format to use it.

Add the following to the drone configuration

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: semantic-release
  5. image: sqeven/semantic-release
  6. settings:
  7. version_file: .tags # the file where the version will be persisted, defaults to .release-version
  8. git_user_name: sqeven # semantic release committer name (git config user.name)
  9. git_user_email: sqeven@example.com # semantic release committer email (git config user.email)
  10. github_token: # semantic release token (for authentication)
  11. from_secret: token

or for BitBucket

  1. bitbucket_token: # semantic release token (for authentication)
  2. from_secret: token

or for GitLab

  1. gitlab_token: # semantic release token (for authentication)
  2. from_secret: token

or for any git server (including BitBucket cloud which does not support tokens):

  1. git_login: bot
  2. git_password:
  3. from_secret: password

What it does

Runs on master branch only. Skips any actions below while on other branches.

  • automatically creates a semantic version number
  • attaches the version number as repo’s git tag
  • exposes the version number into the file .release-version
  • automatically creates, populates and pushes CHANGELOG.md to your master branch

License

MIT