Skip to content

Commit

Permalink
add CREADITS on tagpr
Browse files Browse the repository at this point in the history
  • Loading branch information
mashiike committed Apr 12, 2024
1 parent 62d24e0 commit 493b8ae
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/tagpr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# .github/workflows/tagpr.yml
name: tagpr
on:
push:
Expand All @@ -13,19 +12,22 @@ jobs:
- uses: actions/checkout@v4
- id: tagpr
uses: Songmu/tagpr@v1
- name: Checkout released
uses: actions/checkout@v4
if: ${{ steps.tagpr.outputs.tag != '' }}
with:
ref: ${{ steps.tagpr.outputs.tag }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22.2"
- uses: mashiike/action-gocredits@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.tagpr.outputs.tag == '' }}
- name: Checkout
uses: actions/checkout@v4
if: ${{ steps.tagpr.outputs.tag != '' }}
with:
go-version: "1.22"
- name: Run Go Releaser
ref: ${{ steps.tagpr.outputs.tag }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
if: ${{ steps.tagpr.outputs.tag != '' }}
with:
version: latest
args: release
if: ${{ steps.tagpr.outputs.tag != '' }}
21 changes: 16 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,38 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
version: 1

before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=0
main: ./cmd/prepalert
binary: prepalert
ldflags:
- -s -w
- -X main.Version={{.Version}}
goos:
- darwin
- linux
- windows
- darwin
goarch:
- amd64
- arm64

release:
prerelease: false

archives:
checksum:
name_template: "checksums.txt"
- files:
- LICENSE
- README.md
- CHANGELOG.md
- CREDITS

snapshot:
name_template: "{{ .Env.NIGHTLY_VERSION }}"

changelog:
sort: asc
filters:
Expand Down

0 comments on commit 493b8ae

Please sign in to comment.