Skip to content

Commit 4d6639b

Browse files
committed
chore: update cache-action version
1 parent 59622d4 commit 4d6639b

3 files changed

Lines changed: 22 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- 'v*.*.*'
7+
workflow_dispatch:
8+
79

810
jobs:
911
release:
@@ -23,7 +25,7 @@ jobs:
2325
run: git fetch --tags --force
2426

2527
- name: Cache the build cache
26-
uses: actions/cache@v2
28+
uses: actions/cache@v4
2729
with:
2830
path: |
2931
~/go/pkg/mod
@@ -33,9 +35,9 @@ jobs:
3335
${{ runner.os }}-release
3436
3537
- name: Run GoReleaser
36-
uses: goreleaser/goreleaser-action@v2
38+
uses: goreleaser/goreleaser-action@v6
3739
with:
3840
version: latest
39-
args: release --rm-dist
41+
args: release --clean
4042
env:
4143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
version: 2
2+
13
before:
24
hooks:
35
- go mod tidy
6+
47
builds:
58
- env:
69
- CGO_ENABLED=0
@@ -10,22 +13,29 @@ builds:
1013
- darwin
1114
ldflags:
1215
- -s -w
16+
1317
archives:
14-
- format_overrides:
18+
- format: tar.gz
19+
name_template: >-
20+
{{ .ProjectName }}_{{ .Version }}_
21+
{{- if eq .Os "darwin" }}mac
22+
{{- else }}{{ .Os }}{{ end }}_
23+
{{- if eq .Arch "amd64" }}x86_64
24+
{{- else if eq .Arch "386" }}i386
25+
{{- else }}{{ .Arch }}{{ end }}
26+
format_overrides:
1527
- goos: windows
1628
format: zip
17-
replacements:
18-
darwin: mac
19-
386: i386
20-
amd64: x86_64
29+
2130
checksum:
2231
name_template: 'checksums.txt'
32+
2333
snapshot:
2434
name_template: "{{ incpatch .Version }}-next"
2535

2636
release:
2737
github:
28-
owner: DonDebonair
38+
owner: source-ag
2939
name: ploy
3040
draft: true
3141
prerelease: auto

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It can currently verify and deploy services of the following types:
1515
Install the tool with `go`
1616

1717
```bash
18-
go install github.com/DandyDev/ploy
18+
go install github.com/source-ag/ploy
1919
```
2020

2121
## Usage

0 commit comments

Comments
 (0)