From 178f8e521fa58001ae9f90bf125c054dbcc025b8 Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Tue, 19 May 2026 19:36:09 -0300 Subject: [PATCH] cd: adapt tokens for public repository --- .env.example | 1 - .github/workflows/cd_deploy.yml | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 6736f48..f85f7c3 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,5 @@ CLOUDFLARE_ACCOUNT_ID='' CLOUDFLARE_API_TOKEN='' -PAT='' WORKER_D1='' WORKER_DOMAIN='' ALLOWED_ORIGIN='' diff --git a/.github/workflows/cd_deploy.yml b/.github/workflows/cd_deploy.yml index 31da909..a200856 100644 --- a/.github/workflows/cd_deploy.yml +++ b/.github/workflows/cd_deploy.yml @@ -6,6 +6,12 @@ on: - 'main' workflow_dispatch: +permissions: + contents: write + pull-requests: write + id-token: write + issues: write + jobs: deploy: runs-on: ubuntu-latest @@ -66,7 +72,7 @@ jobs: - name: Deploy — Website uses: peaceiris/actions-gh-pages@v4 with: - github_token: ${{ secrets.PAT }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build publish_branch: 'website' cname: jsconf.com.br