-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
name: goreleaser | ||
|
||
on: | ||
push: | ||
# run only against tags | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: write | ||
# packages: write | ||
# issues: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.19.5' | ||
cache: true | ||
# More assembly might be required: Docker logins, GPG, etc. It all depends | ||
# on your needs. | ||
- uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro': | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ cmd/msgtime/msgtime | |
|
||
# IDE | ||
.idea | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,28 @@ | ||
# .goreleaser.yaml | ||
release: | ||
# Repo in which the release will be created. | ||
# Default is extracted from the origin remote URL or empty if its private hosted. | ||
github: | ||
owner: rusq | ||
name: osx-callhistory-decryptor | ||
|
||
# IDs of the archives to use. | ||
# Defaults to all. | ||
|
||
# If set to true, will not auto-publish the release. | ||
# Available only for GitHub and Gitea. | ||
# | ||
# Default is false. | ||
draft: false | ||
|
||
# Whether to remove existing draft releases with the same name before creating | ||
# a new one. | ||
# Only effective if `draft` is set to true. | ||
# Available only for GitHub. | ||
# | ||
# Default: false. | ||
# Since: v1.11. | ||
|
||
# Useful if you want to delay the creation of the tag in the remote. | ||
# You can create the tag locally, but not push it, and run GoReleaser. | ||
# It'll then set the `target_commitish` portion of the GitHub release to the | ||
# value of this field. | ||
# Only works on GitHub. | ||
# | ||
# Default: empty. | ||
# Since: v1.11. | ||
|
||
# If set, will create a release discussion in the category specified. | ||
# | ||
# Warning: do not use categories in the 'Announcement' format. | ||
# Check https://github.com/goreleaser/goreleaser/issues/2304 for more info. | ||
# | ||
# Default is empty. | ||
|
||
# If set to auto, will mark the release as not ready for production | ||
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1 | ||
# If set to true, will mark the release as not ready for production. | ||
# Default is false. | ||
prerelease: auto | ||
|
||
# What to do with the release notes in case there the release already exists. | ||
# | ||
# Valid options are: | ||
# - `keep-existing`: keep the existing notes | ||
# - `append`: append the current release notes to the existing notes | ||
# - `prepend`: prepend the current release notes to the existing notes | ||
# - `replace`: replace existing notes | ||
# | ||
# Default is `keep-existing`. | ||
mode: append | ||
|
||
# Header template for the release body. | ||
# Defaults to empty. | ||
header: | | ||
## Released on ({{ .Date }}) | ||
Welcome to the new release of {{ .ProjectName }}! | ||
# Footer template for the release body. | ||
# Defaults to empty. | ||
|
||
# You can change the name of the release. | ||
# Default is `{{.Tag}}` on OSS and `{{.PrefixedTag}}` on Pro. | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
|
||
# You can disable this pipe in order to not create the release on any SCM. | ||
# Keep in mind that this might also break things that depend on the release | ||
# URL, for instance, homebrew taps. | ||
# | ||
# Defaults to false. | ||
# Templateable since: v1.15. | ||
|
||
# Set this to true if you want to disable just the artifact upload to the SCM. | ||
# If this is true, GoReleaser will still create the release with the | ||
# changelog, but won't upload anything to it. | ||
# | ||
# Default: false. | ||
# Since: v1.11. | ||
# Templateable since: v1.15. | ||
|
||
# You can add extra pre-existing files to the release. | ||
# The filename on the release will be the last part of the path (base). | ||
# If another file with the same name exists, the last one found will be used. | ||
# These globs can also include templates. | ||
# | ||
# Defaults to empty. | ||
extra_files: | ||
- glob: ./README.md | ||
- glob: ./LICENSE | ||
builds: | ||
- | ||
ldflags: | ||
- -s -w -X main.version={{.Version}} | ||
goarch: | ||
- amd64 | ||
- "386" | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
- freebsd | ||
ignore: | ||
- goos: darwin | ||
goarch: "386" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters