Skip to content

Commit 49ec453

Browse files
committed
feat: setup release workflow
1 parent 5c1b4a6 commit 49ec453

File tree

6 files changed

+82
-3
lines changed

6 files changed

+82
-3
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: release
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: 1.24.3
23+
cache: true
24+
- name: Run GoReleaser
25+
uses: goreleaser/goreleaser-action@v6
26+
with:
27+
distribution: goreleaser
28+
version: '~> v2'
29+
args: release --clean
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
env/
22
workbench
3+
# Added by goreleaser init:
4+
dist/

.goreleaser.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
3+
4+
project_name: workbench
5+
6+
version: 2
7+
8+
before:
9+
hooks:
10+
# You may remove this if you don't use go modules.
11+
- go mod tidy
12+
# you may remove this if you don't need go generate
13+
- go generate ./...
14+
15+
builds:
16+
- main: ./cmd
17+
env:
18+
- CGO_ENABLED=0
19+
goos:
20+
- linux
21+
- windows
22+
- darwin
23+
24+
archives:
25+
- formats: [tar.gz]
26+
# this name template makes the OS and Arch compatible with the results of `uname`.
27+
name_template: >-
28+
{{ .ProjectName }}_
29+
{{- title .Os }}_
30+
{{- if eq .Arch "amd64" }}x86_64
31+
{{- else if eq .Arch "386" }}i386
32+
{{- else }}{{ .Arch }}{{ end }}
33+
{{- if .Arm }}v{{ .Arm }}{{ end }}
34+
# use zip for windows archives
35+
format_overrides:
36+
- goos: windows
37+
formats: [zip]
38+
39+
changelog:
40+
sort: asc
41+
filters:
42+
exclude:
43+
- "^docs:"
44+
- "^test:"
45+
46+
release: {}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Workbench requires Docker Compose v2.
1010
Go 1.24.3 or newer is required to build Workbench.
1111

1212
```shell
13-
> git clone https://github.com/tmacro/workbench.git
13+
> git clone https://github.com/scality/workbench.git
1414
> cd workbench/
1515
> make
1616
```

cmd/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"path/filepath"
99
"text/template"
1010

11-
"github.com/tmacro/workbench"
11+
"github.com/scality/workbench"
1212
)
1313

1414
func getTemplates() fs.FS {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/tmacro/workbench
1+
module github.com/scality/workbench
22

33
go 1.24.3
44

0 commit comments

Comments
 (0)