diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index ae06d27..3ec58f3 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -12,9 +12,16 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: + - name: Generate token + id: generate_token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.PRIVATE_KEY }} - name: Checkout uses: actions/checkout@v4 with: + token: ${{ steps.generate_token.outputs.token }} fetch-depth: 0 - name: Fetch all tags run: git fetch --force --tags @@ -28,4 +35,4 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}