Skip to content

Commit 94f3100

Browse files
committed
ci: add deploy workflow
1 parent e6b422d commit 94f3100

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install deps and build
14+
run: |
15+
npm ci
16+
npm run build
17+
18+
- name: Deploy with Wrangler
19+
uses: cloudflare/wrangler-action@v3
20+
with:
21+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

wrangler.jsonc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
"name": "docs",
44
"compatibility_date": "2025-07-05",
55
"assets": {
6-
"directory": "out"
6+
"directory": "out",
7+
"not_found_handling": "404-page"
8+
},
9+
"routes": [
10+
{
11+
"pattern": "docs.plutonium.pw",
12+
"custom_domain": true
13+
}
14+
],
15+
"workers_dev": false,
16+
"preview_urls": false,
17+
"env": {
18+
"preview": {
19+
"routes": [],
20+
"preview_urls": true
21+
}
722
}
823
}

0 commit comments

Comments
 (0)