Skip to content

Commit a1bd613

Browse files
committed
chore: update GitHub Actions workflow to include additional paths and simplify build directory
1 parent 04d7624 commit a1bd613

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'website/**'
8+
- 'docs/**'
9+
- 'src/**'
10+
- 'static/**'
11+
- 'docusaurus.config.ts'
12+
- 'sidebars.ts'
13+
- 'package.json'
14+
- 'package-lock.json'
915
- '.github/workflows/deploy.yml'
1016
workflow_dispatch:
1117

@@ -21,9 +27,6 @@ concurrency:
2127
jobs:
2228
build:
2329
runs-on: ubuntu-latest
24-
defaults:
25-
run:
26-
working-directory: website
2730
steps:
2831
- name: Checkout
2932
uses: actions/checkout@v4
@@ -33,7 +36,6 @@ jobs:
3336
with:
3437
node-version: 20
3538
cache: npm
36-
cache-dependency-path: website/package-lock.json
3739

3840
- name: Install dependencies
3941
run: npm ci
@@ -44,7 +46,7 @@ jobs:
4446
- name: Upload artifact
4547
uses: actions/upload-pages-artifact@v3
4648
with:
47-
path: website/build
49+
path: build
4850

4951
deploy:
5052
environment:

0 commit comments

Comments
 (0)