diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7257cfbc..3157b662 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,12 +12,12 @@ jobs: steps: # See https://goreleaser.com/ci/actions/#fetch-depthness - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - run: git fetch --force --tags - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: '^1.20' cache: true @@ -29,10 +29,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2.6.1 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: --rm-dist + version: 'v2.2.0' + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}