Skip to content

Commit

Permalink
馃敡 Update release config
Browse files Browse the repository at this point in the history
  • Loading branch information
stoe committed Mar 18, 2023
1 parent 3392769 commit 33e0d09
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ jobs:

steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
fetch-depth: 0

- run: git fetch --force --tags

- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with:
go-version: stable

- uses: cli/gh-extension-precompile@640911b0a0f2adb89a07a8ba547053cbd4001e1e
- uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b
with:
go_version: 1.19.x
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 6 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
project_name: gh_report

release:
prerelease: auto

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

builds:
- env:
Expand All @@ -19,19 +13,12 @@ builds:
- darwin

archives:
- rlcp: true
name_template: >-
- name_template: >-
{{ .ProjectName }}_{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- license
- readme.md
format_overrides:
- goos: windows
format: zip
wrap_in_directory: 'true'
format: binary
checksum:
name_template: "checksums.txt"
Expand All @@ -40,4 +27,7 @@ snapshot:
name_template: "{{ incpatch .Version }}"

changelog:
skip: true
use: github-native

release:
prerelease: auto

0 comments on commit 33e0d09

Please sign in to comment.