mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 14:14:30 +02:00
fix: Use default GitHub token instead of expired PAT
This commit is contained in:
parent
adf569c6be
commit
bdec31ac6e
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
@ -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 }}.
|
||||
|
Loading…
x
Reference in New Issue
Block a user