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