Skip to content

Commit

Permalink
feat(ci): automating CF Pages deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
IS2511 committed Nov 3, 2024
1 parent 58578e3 commit 2b1e164
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cf-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- main
- stage

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to CF Pages
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./ --project-name="chatis-v2" --branch="${{ github.ref_name }}"

0 comments on commit 2b1e164

Please sign in to comment.