diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dab3be4..8f5bf5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - 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.22.3' cache: true @@ -28,16 +28,16 @@ jobs: go mod tidy go test -v ./... - name: Docker Login (ghcr.io) - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.GH_MANGO_GORELEASER_DEPLOY_PAT }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GH_MANGO_GORELEASER_DEPLOY_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}