Skip to content

Release 0.9.0

Release 0.9.0 #255

Workflow file for this run

name: Go
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Test
run: go test -v ./...
- name: Build
run: go build -v .
- name: Run goreleaser in snapshot mode
if: success() && ! startsWith(github.ref, 'refs/tags/v')
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist --snapshot
- name: Upload assets for snapshots
if: success() && ! startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v3
with:
name: support-collector
path: dist/*
- name: Run goreleaser in release mode
if: success() && startsWith(github.ref, 'refs/tags/v')
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}