Skip to content

Commit 5f35832

Browse files
committed
ci: page deployment
1 parent e029162 commit 5f35832

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
deployments: write
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- uses: oven-sh/setup-bun@v2
18+
19+
- run: bun install
20+
21+
- name: Build
22+
run: bun run build
23+
24+
- name: Deploy to Cloudflare Pages
25+
uses: cloudflare/wrangler-action@v3
26+
with:
27+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
28+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
29+
command: pages deploy dist --project-name=ooxml-dev

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules/
22
dist/
33
.DS_Store
4-
dev/
4+
dev/
5+
.wrangler/
6+
.env

0 commit comments

Comments
 (0)