Skip to content

feat(actions): added release action #1

feat(actions): added release action

feat(actions): added release action #1

Workflow file for this run

name: "Release"
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
strategy:
fail-fast: false
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Cache asdf
id: cache-asdf
uses: actions/cache@v4
env:
cache-name: cache-asdf
with:
path: ~/.asdf
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
- name: Build
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}