Skip to content

Commit

Permalink
Merge pull request #40 from ryoppippi/feature/upload-cloudflare-pages
Browse files Browse the repository at this point in the history
feat: Add deployment workflow and script
  • Loading branch information
ryoppippi authored Jun 6, 2024
2 parents 891cabc + 0ff27a5 commit 691ff04
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun i --frozen-lockfile
- run: bun run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"build": "turbo build",
"lint": "turbo lint",
"test": "turbo test"
"test": "turbo test",
"deploy": "turbo deploy"
},
"workspaces": [
"examples/*",
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"dev": {
"persistent": true,
"cache": false
},
"deploy": {
"dependsOn": ["^deploy"]
}
}
}

0 comments on commit 691ff04

Please sign in to comment.