This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.

40 lines
753 B
YAML
Raw Normal View History

2022-03-06 16:32:34 +01:00
name: Go
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
2022-03-06 16:32:34 +01:00
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Test
run: go test -v ./...
2022-03-07 20:03:32 +01:00
- name: Lint source code
run: |
make tools lint
rm -rf .bin/
rm -rf dist/
2022-03-06 16:32:34 +01:00
- name: Create release tag
run: |
git tag "v$(git show -s --format=%cd --date=format:%Y%m%d.%H%M%S)"
git push --tags
- name: Release binaries with GoReleaser
uses: goreleaser/goreleaser-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: release --rm-dist