Skip to content

Commit

Permalink
release test
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Oct 16, 2024
1 parent 5e7c22b commit 51cc4c9
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release-tag:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
cache: false
go-version: "1.23"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
dist: releases
builds:
- id: credential
binary: "credential"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
flags:
- "-trimpath"
ldflags:
- "-s -w"
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
github:
owner: "g-linville"
name: "credential"

0 comments on commit 51cc4c9

Please sign in to comment.