Skip to content

Update golang.org/x/mod (#195) #39

Update golang.org/x/mod (#195)

Update golang.org/x/mod (#195) #39

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
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "1.23"
- 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@v6
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: v2.3.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}