From bdec31ac6e4e6a34ca0b20745fe6f29bf6faad0b Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 17 Feb 2025 02:06:40 +0100 Subject: [PATCH] fix: Use default GitHub token instead of expired PAT --- .github/workflows/deploy.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5dfe08a..305a076 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,26 +21,31 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Install Node.js + uses: actions/setup-node@v4 + with: + cache: npm + + - name: Install dependencies + run: npm i + - name: Build env: RV_API_URL: ${{ vars.RV_API_URL }} RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }} RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }} - run: | - npm i - npm run build + run: npm run build - name: Deploy + id: deploy uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy public --project-name=revanced-website - id: deploy - name: Comment deployment URL if: ${{ github.event_name == 'pull_request' }} uses: thollander/actions-comment-pull-request@v2 with: - GITHUB_TOKEN: ${{ secrets.PULL_REQUESTS_WRITE }} - message: Deployed at ${{ steps.deploy.outputs.pages-deployment-alias-url }}. + message: Deployed at ${{ steps.deploy.outputs.deployment-url }}.