Skip to content

Deploy to Cloudflare #5

Deploy to Cloudflare

Deploy to Cloudflare #5

name: Deploy to Cloudflare
on:
workflow_run:
workflows: ["Node.js CI"]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Download Build Artifact
uses: actions/[email protected]
with:
name: dist
path: dist
- name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
env:
WORKING_DIRECTORY: './dist'