Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 1d0cceb

Browse files
author
Alexis Bouchez
committed
fix goreleaser (or at least, trying...)
1 parent 49aa147 commit 1d0cceb

3 files changed

Lines changed: 8 additions & 55 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- name: Checkout
16+
uses: actions/checkout@v4
1617
with:
1718
fetch-depth: 0
18-
- run: git fetch --force --tags
19-
- uses: actions/setup-go@v4
20-
with:
21-
go-version: stable
22-
- uses: goreleaser/goreleaser-action@v5
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
- name: Run GoReleaser
22+
uses: goreleaser/goreleaser-action@v6
2323
with:
2424
distribution: goreleaser
25-
version: ${{ env.GITHUB_REF_NAME }}
25+
version: "~> v2"
2626
args: release --clean
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1 @@
1-
# This is an example .goreleaser.yml file with some sensible defaults.
2-
# Make sure to check the documentation at https://goreleaser.com
3-
before:
4-
hooks:
5-
# You may remove this if you don't use go modules.
6-
- go mod tidy
7-
# you may remove this if you don't need go generate
8-
- go generate ./...
9-
builds:
10-
- id: valyent
11-
binary: valyent
12-
env:
13-
- CGO_ENABLED=0
14-
goos:
15-
- linux
16-
- windows
17-
- darwin
18-
19-
archives:
20-
- format: tar.gz
21-
# this name template makes the OS and Arch compatible with the results of uname.
22-
name_template: >-
23-
{{ .ProjectName }}_
24-
{{- title .Os }}_
25-
{{- if eq .Arch "amd64" }}x86_64
26-
{{- else if eq .Arch "386" }}i386
27-
{{- else }}{{ .Arch }}{{ end }}
28-
{{- if .Arm }}v{{ .Arm }}{{ end }}
29-
# use zip for windows archives
30-
format_overrides:
31-
- goos: windows
32-
format: zip
33-
universal_binaries:
34-
- replace: true
35-
checksum:
36-
name_template: "checksums.txt"
37-
snapshot:
38-
name_template: "{{ incpatch .Version }}-next"
39-
changelog:
40-
sort: asc
41-
filters:
42-
exclude:
43-
- "^docs:"
44-
- "^test:"
45-
# The lines beneath this are called `modelines`. See `:help modeline`
46-
# Feel free to remove those if you don't want/use them.
47-
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
48-
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
1+
project_name: valyent
File renamed without changes.

0 commit comments

Comments
 (0)