mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm i
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
RV_API_URL: ${{ vars.RV_API_URL }}
|
RV_API_URL: ${{ vars.RV_API_URL }}
|
||||||
RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }}
|
RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }}
|
||||||
RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }}
|
RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }}
|
||||||
run: |
|
run: npm run build
|
||||||
npm i
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
id: deploy
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
command: pages deploy public --project-name=revanced-website
|
command: pages deploy public --project-name=revanced-website
|
||||||
id: deploy
|
|
||||||
|
|
||||||
- name: Comment deployment URL
|
- name: Comment deployment URL
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
uses: thollander/actions-comment-pull-request@v2
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.PULL_REQUESTS_WRITE }}
|
message: Deployed at ${{ steps.deploy.outputs.deployment-url }}.
|
||||||
message: Deployed at ${{ steps.deploy.outputs.pages-deployment-alias-url }}.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user