From 96714c3185ad324a393327238b9f6b22a3666791 Mon Sep 17 00:00:00 2001 From: Koen van Zuijlen <8818390+kvanzuijlen@users.noreply.github.com> Date: Sat, 2 Mar 2024 17:36:13 +0100 Subject: [PATCH] fix: Fixed release pipeline --- .github/workflows/release.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a18816d..467fa26 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,10 +6,8 @@ on: jobs: release: permissions: - contents: "write" id-token: "write" packages: "write" - pull-requests: "read" name: release runs-on: ubuntu-22.04 steps: @@ -40,8 +38,8 @@ jobs: uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: registry: ghcr.io - username: ${{ secrets.VERSION_CLI_UPDATER_APP_ID }} - password: ${{ steps.app-token.outputs.token }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build Docker image run: VERSION=${{ steps.draft_release.outputs.tag_name }} make docker-push @@ -80,6 +78,6 @@ jobs: run: | gh release upload --clobber ${{ env.VERSION }} ${{ env.FILES }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} VERSION: ${{ steps.draft_release.outputs.tag_name }} FILES: dist/version_*.tar.gz dist/version_*.zip dist/version_*_checksums.txt