Skip to content

feat: deploy via GitHub Actions (#477) #4

feat: deploy via GitHub Actions (#477)

feat: deploy via GitHub Actions (#477) #4

Workflow file for this run

on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm install -g yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy .vitepress/dist/ --project-name=hono