Skip to content

Commit

Permalink
feat: deploy via GitHub Actions (#477)
Browse files Browse the repository at this point in the history
* feat: deploy via GitHub Actions

* install yarn

* `yarn install --frozen-lockfile`
  • Loading branch information
yusukebe authored Sep 10, 2024
1 parent 0fbf7f1 commit d223aca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

0 comments on commit d223aca

Please sign in to comment.