chore: add github actions

This commit is contained in:
asrul10
2023-03-12 16:01:18 +07:00
parent b04f7016b8
commit c6b1474117
3 changed files with 65 additions and 1 deletions

31
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: basebuild
on:
pull_request:
push:
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- name: Run tests
run: go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}