Skip to content

Commit

Permalink
added go releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
arontaubyte committed Aug 2, 2023
1 parent 910cf9f commit 781c60f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
# run only against tags
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19.x'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --clean --config .goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
4 changes: 1 addition & 3 deletions cli/.goreleaser.yaml → .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL or empty if its private hosted.
github:
owner: arontaubyte
owner: taubyte
name: dreamland

# If set to true, will not auto-publish the release.
Expand Down Expand Up @@ -56,8 +56,6 @@ builds:
env:
- CGO_ENABLED=0
- GOAMD64=v2
tags:
- odo

changelog:
skip: true
Expand Down

0 comments on commit 781c60f

Please sign in to comment.