Skip to content

Commit

Permalink
update releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Sato1995 committed Jan 25, 2024
1 parent 2c45fc2 commit b48e4b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
with:
go-version-file: go.mod
cache: true
- uses: goreleaser/goreleaser-action@v4
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - uses: goreleaser/goreleaser-action@v4
# with:
# args: release --rm-dist
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 1 addition & 30 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
version: 1

before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./simple-ssg-cli
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- skip: true

0 comments on commit b48e4b1

Please sign in to comment.