Skip to content

Commit

Permalink
ci: update goreleaser and renovate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nightah committed Jul 25, 2022
1 parent 15b5c70 commit 522b04d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Fetch all tags

- name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
name: Run GoReleaser

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
Expand Down
17 changes: 11 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
project_name: lancache-diagnostics

archives:
- id: lancache-diagnostics
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -14,15 +21,13 @@ builds:
- -trimpath
ldflags:
- -s -w
archives:
- id: lancache-diagnostics
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz
snapshot:
name_template: "{{ .ProjectName }}-v{{ incpatch .Version }}"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

snapshot:
name_template: "{{ .ProjectName }}-v{{ incpatch .Version }}"
8 changes: 8 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
"dependencies"
],
"packageRules": [
{
"datasources": [
"github-tags"
],
"addLabels": [
"github-actions"
]
},
{
"datasources": [
"go"
Expand Down

0 comments on commit 522b04d

Please sign in to comment.