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 }}