Skip to content

Commit

Permalink
ci: Use Wrangler Action instead of now deprecated Pages Action
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Nov 30, 2024
1 parent 1f5abe9 commit 236226a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:
- dev
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
pull-requests: write
name: Deploy
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -30,18 +30,17 @@ jobs:
npm i
npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: public
id: publish
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.publish.outputs.alias }}.
message: Deployed at ${{ steps.deploy.outputs.pages-deployment-alias-url }}.

0 comments on commit 236226a

Please sign in to comment.