add ci2.yml

This commit is contained in:
xlh001 2023-04-13 22:44:56 +08:00
parent 21a2e00f86
commit afacf917d6
1 changed files with 26 additions and 0 deletions

26
.github/workflows/ci2.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: CI2
on: [push, pull_request]
jobs:
build:
name: Build binary CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}