Skip to content

ci: use gh to create release #4

ci: use gh to create release

ci: use gh to create release #4

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
jobs:
autorelease:
name: Create Release
runs-on: 'ubuntu-latest'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: make build
- name: Release Notes
run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an' --no-merges >> ".github/RELEASE-TEMPLATE.md"
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
gh release create ${{ github.ref_name }}
--title "${{ github.ref_name }}"
--notes-file ".github/RELEASE-TEMPLATE.md"