Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Update ci.yaml workflow to trigger on push to main branch #1

Update ci.yaml workflow to trigger on push to main branch

Update ci.yaml workflow to trigger on push to main branch #1

Workflow file for this run

name: cd
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
- run: npm install
- run: npm run build
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: deploy --var VERSION:${{ github.sha }}