From 781c60fbb52aaa0f778aa661bb41f82935c6c307 Mon Sep 17 00:00:00 2001 From: Aron Jalbuena Date: Wed, 2 Aug 2023 12:49:59 -0500 Subject: [PATCH] added go releaser --- .github/workflows/release.yml | 29 ++++++++++++++++++++++++ cli/.goreleaser.yaml => .goreleaser.yaml | 4 +--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml rename cli/.goreleaser.yaml => .goreleaser.yaml (97%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..03721c0 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/cli/.goreleaser.yaml b/.goreleaser.yaml similarity index 97% rename from cli/.goreleaser.yaml rename to .goreleaser.yaml index faab96b..b5d2935 100644 --- a/cli/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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. @@ -56,8 +56,6 @@ builds: env: - CGO_ENABLED=0 - GOAMD64=v2 - tags: - - odo changelog: skip: true