Skip to content

Release 0.11.1

Release 0.11.1 #28

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:
- uses: actions/checkout@v3
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: crazy-max/ghaction-import-gpg@v5
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
- uses: EndBug/add-and-commit@v9
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: softprops/action-gh-release@v1
with:
name: "${{ env.VERSION }}"
tag_name: "${{ env.VERSION }}"
generate_release_notes: true