Skip to content

Commit

Permalink
chore: fix goreleaser ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DblK committed Jun 26, 2023
1 parent 29ec5ff commit 39b51ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,26 @@ on:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.20
- name: Compile the source
uses: goreleaser/goreleaser-action@v2
- uses: actions/setup-go@v4
with:
version: latest
args: build --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
go-version: '1.20'
cache: false
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ config.yaml
titles.US.en.json
/dist
stats.db
coverprofile.out
coverprofile.out

tinshop
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ builds:
- windows
- darwin
archives:
- replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- id: executable
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
release:
draft: true
checksum:
Expand Down

0 comments on commit 39b51ba

Please sign in to comment.