Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
changelog-generator-default
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
go-semantic-release
changelog-generator-default
Commits
c7c5d097
Commit
c7c5d097
authored
3 years ago
by
Christoph Witzko
Browse files
Options
Downloads
Patches
Plain Diff
feat: use goreleaser
parent
acb1dba8
Branches
Branches containing commit
Tags
v1.9.0
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/ci.yml
+1
-14
1 addition, 14 deletions
.github/workflows/ci.yml
.goreleaser.yaml
+21
-0
21 additions, 0 deletions
.goreleaser.yaml
with
22 additions
and
14 deletions
.github/workflows/ci.yml
+
1
−
14
View file @
c7c5d097
...
...
@@ -37,21 +37,8 @@ jobs:
-
uses
:
actions/setup-go@v3
with
:
go-version
:
1.18
-
run
:
|
go install github.com/mitchellh/gox@latest
go install github.com/tcnksm/ghr@latest
-
uses
:
go-semantic-release/action@v1
id
:
semrel
with
:
github-token
:
${{ secrets.GITHUB_TOKEN }}
ghr
:
true
-
run
:
|
gox -parallel 4 -osarch="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/changelog-generator-default/pkg/generator.CGVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/changelog-generator-default/
cd bin/ && shasum -a 256 * > ./changelog-generator-default_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
if
:
steps.semrel.outputs.version != ''
env
:
CGO_ENABLED
:
0
-
run
:
ghr $(cat .ghr) bin/
if
:
steps.semrel.outputs.version != ''
hooks
:
goreleaser
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
This diff is collapsed.
Click to expand it.
.goreleaser.yaml
0 → 100644
+
21
−
0
View file @
c7c5d097
builds
:
-
env
:
-
CGO_ENABLED=0
targets
:
-
linux_amd64
-
linux_arm64
-
darwin_amd64
-
darwin_arm64
-
linux_arm
-
windows_amd64
main
:
./cmd/changelog-generator-default
ldflags
:
-
-extldflags '-static'
-
-s -w -X github.com/go-semantic-release/changelog-generator-default/pkg/generator.CGVERSION={{.Version}}
archives
:
-
format
:
binary
name_template
:
'
{{
.Binary
}}_v{{
.Version
}}_{{
.Os
}}_{{
.Arch
}}'
checksum
:
name_template
:
'
{{
.ProjectName
}}_v{{
.Version
}}_checksums.txt'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment