Skip to content

Commit ef5d06a

Browse files
committed
github pages CDN experiement
1 parent 4d80d90 commit ef5d06a

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/pages.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: pages
2+
3+
on:
4+
push:
5+
branches: [gh-pages]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: oven-sh/setup-bun@v1
23+
with:
24+
bun-version: latest
25+
- name: Install dependencies
26+
run: bun install --frozen-lockfile
27+
- name: Refresh providers (generates providers/* and VERSION)
28+
run: bun run rss
29+
- name: Build static site
30+
run: bun run build
31+
- name: Upload artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: packages/web/dist
35+
deploy:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Deploy to Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v4

.github/workflows/preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- dev
77
types: [opened, synchronize, reopened, closed]
8+
workflow_dispatch:
89

910
concurrency:
1011
group: preview-${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)