Skip to content

Manual Deploy to Cloudflare Pages #16

Manual Deploy to Cloudflare Pages

Manual Deploy to Cloudflare Pages #16

Workflow file for this run

name: Manual Deploy to Cloudflare Pages
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Wrangler CLI
run: npm install wrangler
- name: Install dependencies
run: npm ci
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy --project-name=$CLOUDFLARE_PROJECT_NAME ./src --branch=master -commit-dirty=true