1
1
mirror of https://github.com/cooperspencer/gickup synced 2025-08-29 06:51:28 +02:00
gickup/.github/workflows/go.yml
2023-10-03 15:53:43 +02:00

40 lines
754 B
YAML

name: Go
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Test
run: go test -v ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: gickup
path: dist/*