Skip to content

Commit eeca99e

Browse files
committed
update workflow
1 parent e87180b commit eeca99e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
build:
1313
name: Build
1414
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: ./playground
1518

1619
steps:
1720
- name: Checkout repo
@@ -22,11 +25,8 @@ jobs:
2225
with:
2326
node-version: 20
2427

25-
- name: Move to playground
26-
run: cd ./playground
27-
2828
- name: Install dependencies
29-
run: npm i
29+
run: npm install
3030

3131
- name: Build project
3232
run: npm run build
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/upload-artifact@v4
3636
with:
3737
name: production-files
38-
path: ./dist
38+
path: ./playground/dist
3939

4040
deploy:
4141
name: Deploy
@@ -48,10 +48,10 @@ jobs:
4848
uses: actions/download-artifact@v4
4949
with:
5050
name: production-files
51-
path: ./dist
51+
path: ./playground/dist
5252

5353
- name: Deploy to GitHub Pages
5454
uses: peaceiris/actions-gh-pages@v4
5555
with:
5656
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
publish_dir: ./dist
57+
publish_dir: ./playground/dist

0 commit comments

Comments
 (0)