Skip to content

Commit

Permalink
bump versions : go and goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
kpym committed Apr 25, 2023
1 parent ff2e7f7 commit 0cd4ee4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ name: goreleaser



# on events
on:
push:
tags:
Expand All @@ -16,18 +15,22 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Fetch tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: stable
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.gitignore
*.exe
dist
build*.sh
27 changes: 15 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: urlencode
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
-
env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -16,12 +13,18 @@ builds:
ldflags:
- -s -w -X main.version={{.Version}}
archives:
- replacements:
darwin: MacOS
linux: Linux
windows: Windows
386: 32bit
amd64: 64bit
-
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}MacOS
{{- else if eq .Os "linux" }}Linux
{{- else if eq .Os "windows" }}Windows
{{- else }}{{ .Os }}
{{- end }}_
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else }}{{ .Arch }}
{{- end }}
format_overrides:
- goos: windows
format: zip
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/kpym/urlencode

go 1.19
go 1.20

0 comments on commit 0cd4ee4

Please sign in to comment.