Skip to content

Commit

Permalink
Fix #7: Use a tag push as a release trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
sibprogrammer committed Oct 11, 2023
1 parent 1432df0 commit 7df65db
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.21

- name: Release
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build: test
go build -ldflags "$(LDFLAGS)"

release: test
goreleaser release
goreleaser release --rm-dist

run:
go run main.go
Expand Down

0 comments on commit 7df65db

Please sign in to comment.