kubekey/.github/workflows/release.yaml
Leo Li 7a7bfd9aa2 modify the github workflow and build using go 1.17
Signed-off-by: Leo Li <jacksama@foxmail.com>
2021-12-23 16:03:58 +08:00

28 lines
592 B
YAML

name: Release
on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.8.0
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}