Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Jul 22, 2023
1 parent 73e7a4e commit 0af92e0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,18 @@ jobs:
- name: Test
run: go test -v ./...

deploy:
runs-on: ubuntu-latest
permissions: write-all
needs: build
if: github.ref_name == 'fix-ci'
steps:
- name: Release
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
out
dot
dist

dist/
14 changes: 14 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
builds:
- id: dot
goarch:
- arm64
- amd64
goos:
- linux
- darwin

release:
github:
owner: gszr
name: dot
target_commitish: "{{ .Commit }}"

0 comments on commit 0af92e0

Please sign in to comment.