Skip to content

Run go test -v only if -v flag is set #33

Run go test -v only if -v flag is set

Run go test -v only if -v flag is set #33

Workflow file for this run

name: Release Go project
on:
push:
tags:
- "v*" # triggers only if push new tag version, like `0.8.4` or else
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: v1.13.1
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}