Skip to content

Commit

Permalink
goreleaser + action
Browse files Browse the repository at this point in the history
  • Loading branch information
bandorko committed Oct 1, 2023
1 parent 6d1e4fc commit 2cd8c95
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release
on:
push:
tags:
- "v*"
permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: "1.20.0"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ builds:
goos:
- linux
- windows
goarch:
- amd64

archives:
- format: tar.gz
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ k6-go passes all the parameters to the generated custom k6 image.
## build

```bash
go build cmd/k6-go/k6-go.go
go build k6-go.go
```

## example
Expand Down
File renamed without changes.

0 comments on commit 2cd8c95

Please sign in to comment.