diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 840590e..ef61bbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,32 +1,30 @@ -name: Release +name: goreleaser on: - push - # branches: - # - main + pull_request: + push: -concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: + contents: write jobs: - release: - name: Release + goreleaser: runs-on: ubuntu-latest steps: - - name: Checkout Repo + - + name: Checkout uses: actions/checkout@v4 - - - name: Setup Go + with: + fetch-depth: 0 + - + name: Set up Go uses: actions/setup-go@v4 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 with: - go-version: 1.21.7 - - - name: Install dependencies - run: go get . - - - name: Install goreleaser - run: go install github.com/goreleaser/goreleaser@latest - - - name: Release - run: goreleaser release --clean + distribution: goreleaser + version: latest + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file