Skip to content

chore: update package name to vite-cf-do-v2-runner #21

chore: update package name to vite-cf-do-v2-runner

chore: update package name to vite-cf-do-v2-runner #21

name: Deploy Templates to Cloudflare R2
on:
push:
branches: [ main ]
workflow_dispatch: # Allow manual triggering
jobs:
deploy-templates:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
npm install -g wrangler
- name: Deploy templates
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }}
run: |
chmod +x deploy_templates.sh
./deploy_templates.sh