Skip to content

Commit b929a76

Browse files
committed
Bump GitHub actions workflow dependencies (#49)
* Bump GitHub actions workflow dependencies * Update release tag pattern
1 parent 27408ca commit b929a76

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

.github/workflows/release.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,30 @@ name: Release
22

33
on:
44
push:
5-
tags:
6-
- "*"
5+
tags: ["v*.*.*"]
76

87
jobs:
98
goreleaser:
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1312
with:
1413
fetch-depth: 0
15-
- uses: actions/setup-go@v4
14+
- uses: actions/setup-go@v5
1615
with:
17-
go-version: ~1.17
18-
- uses: docker/setup-qemu-action@v1
19-
- uses: docker/setup-buildx-action@v1
20-
- uses: docker/login-action@v1
16+
go-version: "stable"
17+
- uses: docker/setup-qemu-action@v3
18+
- uses: docker/setup-buildx-action@v3
19+
- uses: docker/login-action@v3
2120
with:
2221
registry: ghcr.io
2322
username: ${{ github.repository_owner }}
2423
password: ${{ secrets.GITHUB_TOKEN }}
2524
- name: Run GoReleaser
26-
uses: goreleaser/goreleaser-action@v2
25+
uses: goreleaser/goreleaser-action@v5
2726
with:
2827
distribution: goreleaser
2928
version: latest
30-
args: release --rm-dist
29+
args: release --clean
3130
env:
3231
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
name: lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: golangci-lint
17-
uses: golangci/golangci-lint-action@v2
17+
uses: golangci/golangci-lint-action@v4
1818

1919
test:
2020
strategy:
@@ -25,11 +25,11 @@ jobs:
2525
steps:
2626
- name: Install Go
2727
if: success()
28-
uses: actions/setup-go@v4
28+
uses: actions/setup-go@v5
2929
with:
3030
go-version: ${{ matrix.go-version }}
3131
- name: Checkout code
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
with:
3434
path: src/github.com/guptarohit/asciigraph
3535
- name: Set up GOPATH

.goreleaser.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ archives:
3030
files:
3131
- LICENSE
3232
- README.md
33-
# Replacements for GOOS and GOARCH on the archive name.
34-
replacements:
35-
'386': i386
36-
darwin: Darwin
37-
linux: Linux
38-
windows: Windows
39-
amd64: x86_64
33+
name_template: >-
34+
{{- .ProjectName }}_
35+
{{- .Version }}_
36+
{{- title .Os }}_
37+
{{- if eq .Arch "amd64" }}x86_64
38+
{{- else if eq .Arch "386" }}i386
39+
{{- else }}{{ .Arch }}{{ end }}
40+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
4041
format_overrides:
4142
- goos: windows
4243
format: zip

go.sum

Whitespace-only changes.

0 commit comments

Comments
 (0)