chore(release): 2.3.0 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: go-release | |
# by ENV_CI_DIST_VERSION and push binary | |
on: | |
push: | |
tags: | |
- '*' # Push events to matching *, i.e. 1.0.0 v1.0, v20.15.10 | |
permissions: | |
contents: write | |
jobs: | |
go-release-cross: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go SDK | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.20' | |
cache: false | |
- name: Build Release binary | |
run: | | |
make dep | |
make test | |
- uses: softprops/action-gh-release@master | |
name: Create Release | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
## with permissions to create releases in the other repo | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
# body_path: ${{ github.workspace }}-CHANGELOG.txt | |
prerelease: true | |
# https://github.com/isaacs/node-glob | |
# files: | | |
# **/*.tar.gz | |
# **/*.sha256 |