Skip to content

Release 0.13.0

Release 0.13.0 #30

Workflow file for this run

---
name: release
run-name: Release ${{ inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: |
Version to release. Must be greater than the last version.
required: true
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master
with:
token: ${{ secrets.RELEASE_TOKEN }}
ref: master
fetch-depth: 0
- name: set-version
run: .github/scripts/set_version.sh "${{ github.event.inputs.version }}"
- name: Setup GPG
id: setup-gpg
uses: nhatthm/gh-actions/import-gpg@master
with:
gpg_private_key: ${{ secrets.RELEASE_PRIVATE_KEY }}
passphrase: ${{ secrets.RELEASE_SECRET }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: false
- name: Add and Commit
uses: nhatthm/gh-actions/git-add-and-commit@master
with:
add: version.go
message: "Release ${{ env.VERSION }}"
push: true
tag: "${{ env.VERSION }}"
author_name: ${{ steps.setup-gpg.outputs.name }}
author_email: ${{ steps.setup-gpg.outputs.email }}
committer_name: ${{ steps.setup-gpg.outputs.name }}
committer_email: ${{ steps.setup-gpg.outputs.email }}
- uses: nhatthm/gh-actions/github-release@master
with:
name: "${{ env.VERSION }}"
tag_name: "${{ env.VERSION }}"
generate_release_notes: true