From 6014fb09d3ae5178111d8e1e22b07e09c33711de Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 26 Feb 2025 15:10:19 +0000 Subject: [PATCH] chore: update deployment workflow to grant write permissions and configure remote URL with GITHUB_TOKEN --- .github/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dc04d90..b52bdce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true permissions: - contents: read + contents: write pages: write id-token: write @@ -46,7 +46,9 @@ jobs: run: | git config --global user.name ${{ secrets.GIT_NAME }} git config --global user.email ${{ secrets.GIT_EMAIL }} - git remote set-url origin https://x-access-token:${{ secrets.DOCS_PAT }}@github.com/rommapp/docs.git + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git - name: Build the documentation run: uv run mike deploy --push ${{ github.event.inputs.version }} latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}