Skip to content

Commit 090f4a9

Browse files
committed
Add Staging deploy
1 parent a664795 commit 090f4a9

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'deploy-staging'
2+
3+
on:
4+
push:
5+
branches:
6+
- framework16-staging
7+
pull_request:
8+
types: [assigned, opened, synchronize, reopened]
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
deployments: write
15+
16+
concurrency:
17+
group: 'deploy'
18+
cancel-in-progress: true
19+
20+
jobs:
21+
deploy:
22+
name: deploy
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
cache: 'npm'
30+
node-version: 18
31+
- run: bun i
32+
- run: bun run build:dist
33+
- uses: cloudflare/pages-action@1
34+
with:
35+
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
36+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
37+
projectName: framework-keyboard-via-staging
38+
directory: './dist'
39+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
with:
2929
cache: 'npm'
3030
node-version: 18
31-
- run: npm i
32-
- run: npm run build:dist
31+
- run: bun i
32+
- run: bun run build:dist
3333
- uses: cloudflare/pages-action@1
3434
with:
3535
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}

0 commit comments

Comments
 (0)