Skip to content

fix go module (add v2) #2

fix go module (add v2)

fix go module (add v2) #2

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 <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
body_path: ".github/RELEASE-TEMPLATE.md"
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}