Skip to content

Commit

Permalink
goreleaser: fix deprecation warnings, attest artifacts (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuasing authored Jan 28, 2025
1 parent 2fe0320 commit 2208cc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
contents: write
id-token: write
packages: write
attestations: write
env:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
Expand Down Expand Up @@ -68,3 +69,14 @@ jobs:
args: "release --clean"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: "Attest release artifacts"
uses: actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # v2.2.0
with:
subject-path: |
dist/**/starlink_exporter
dist/*.tar.gz
dist/*.zip
dist/*.txt
dist/*.pem
dist/*.sig
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ builds:
goarch: "arm"

archives:
- format: "tar.gz"
- formats: "tar.gz"
wrap_in_directory: true
name_template: >-
{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: "windows"
format: "zip"
formats: "zip"
files:
- "README*"
- "LICENSE*"
Expand Down

0 comments on commit 2208cc7

Please sign in to comment.