Skip to content

Commit 28862d9

Browse files
committed
Fix docs deployment github action
1 parent 76553a8 commit 28862d9

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- "website/**"
97

108
jobs:
119
build:
@@ -18,20 +16,19 @@ jobs:
1816
- uses: actions/checkout@v4
1917
with:
2018
fetch-depth: 0
21-
- uses: oven-sh/setup-bun@v2
19+
- uses: actions/setup-node@v4
2220
with:
23-
bun-version: latest
21+
node-version: 18
2422

2523
- name: Install dependencies
26-
run: bun install --frozen-lockfile
27-
24+
run: npm install --frozen-lockfile
2825
- name: Build website
29-
run: bun build
26+
run: npm run build
3027

3128
- name: Upload Build Artifact
3229
uses: actions/upload-pages-artifact@v3
3330
with:
34-
path: build
31+
path: ./website/build
3532

3633
deploy:
3734
name: Deploy to GitHub Pages
@@ -50,11 +47,5 @@ jobs:
5047
runs-on: ubuntu-latest
5148
steps:
5249
- name: Deploy to GitHub Pages
53-
uses: peaceiris/actions-gh-pages@v3
54-
if:
55-
github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
56-
with:
57-
github_token: ${{ secrets.GITHUB_TOKEN }}
58-
publish_dir: ./websites/build
59-
user_name: "github-actions[bot]"
60-
user_email: "github-actions[bot]@users.noreply.github.com"
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)