Help us shape the future of Go! Take the 2026 Go Developer Survey

release-notary

command module
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 1 Imported by: 0

README

Release notary

Build Status

Release Notary builds release notes using Conventional Commit standard and then publishes it to Github. Release notes are appended to any text you already have in your release and therefore will not affect important announcements etc.

Currently supported providers are: [Github, Gitlab].

Heavily inspired by https://github.com/graphql/graphql-js/releases, but usable as a standalone app.

Expected output is HERE

⚠ Currently experimental. Please report any issues ⚠

Table of contents
  1. Setup
  2. Usage

Setup

Github

Variables:

Name Example value Required
GITHUB_TOKEN token (provided in Github Action or HERE) true
GITHUB_REPOSITORY commitsar-app/commitsar true

In Github actions GITHUB_REPOSITORY is provided in the correct format. Does not need to be explicitly added.

In Github actions GITHUB_TOKEN is provided with the correct access rights, elsewhere it needs to be generated and added to the pipeline. Please see the usage section.

Gitlab

Variables:

In Gitlab CI all the values are provided except for GITLAB_TOKEN. Documentation provided here.

Name Example value Required
GITLAB_TOKEN token true
CI_API_V4_URL https://gitlab.com/api/v4 true
CI_COMMIT_TAG v0.0.4 true
CI_PROJECT_ID 1234 true

Usage

Using Github actions

Should be run only on tags, example is HERE:

on:
  push:
    tags:
      - "v*"

Checkout git in order to get commits and master branch

- name: Check out code into the Go module directory
  uses: actions/checkout@v1

Run the Release Notary action. Github token needs to be explicitly added so that Release Notary can use it. See https://help.github.com/en/articles/virtual-environments-for-github-actions

- name: Release Notary Action
  uses: commitsar-app/release-notary@v0.2.0 (substitute for current version)
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Gitlab CI
release:
  stage: release
  variables:
    GITLAB_TOKEN: $RELEASE_TOKEN
  image: commitsar/release-notary
  script:
    - release-notary publish
  only:
    - tags
Using binary

Download and run: (Substitute v0.0.2 for current version)

- curl -L -O https://github.com/commitsar-app/release-notary/releases/download/v0.0.2/release-notary_v0.0.2_Linux_x86_64.tar.gz
- tar -xzf release-notary_v0.0.2_Linux_x86_64.tar.gz
# Set up any required variables
- export GITHUB_TOKEN=yourtoken
- export GITHUB_REPOSITORY=owner/repo
- ./release-notary publish

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
release
Package release holds the common Release struct shared across all other packages
Package release holds the common Release struct shared across all other packages
releaser
Package releaser is used for releasing to Github or Gitlab Releases.
Package releaser is used for releasing to Github or Gitlab Releases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL