Skip to content

deploy

deploy #68

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: "30 5 * * *"
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: build and deploy
run: |
npm i && npm i -g wrangler
npm run build
npx wrangler pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch=main
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}