From ad6990a12f1141ba64ffe96940e2b429dc159b2b Mon Sep 17 00:00:00 2001 From: Yunus AYDIN Date: Fri, 9 Aug 2024 20:36:38 +0300 Subject: [PATCH] Update goreleaser.yml --- .github/workflows/goreleaser.yml | 37 +++++++++++++------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 9a8a707..d17564e 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -1,41 +1,34 @@ -# .github/workflows/release.yml name: goreleaser on: + pull_request: push: - # run only against tags - tags: - - "*" permissions: contents: write - packages: write - # issues: write jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - + name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - - run: git fetch --force --tags - - uses: actions/setup-go@v4 + - + name: Set up Go + uses: actions/setup-go@v5 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 with: - go-version: stable - workdir: ./cmd/wallet-tracker/ - # More assembly might be required: Docker logins, GPG, etc. - # It all depends on your needs. - - uses: goreleaser/goreleaser-action@v5 - with: - # either 'goreleaser' (default) or 'goreleaser-pro': + # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser - version: latest + # 'latest', 'nightly', or a semver + version: '~> v2' args: release --clean - workdir: ./cmd/wallet-tracker/ env: GITHUB_TOKEN: ${{ secrets.TOKEN }} - MAIN: ./cmd/wallet-tracker/main.go - # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' - # distribution: - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}t + # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution + # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}