Skip to content

Commit 26d7559

Browse files
committed
cleanup before upload
1 parent 0511a67 commit 26d7559

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ jobs:
2828
uses: actions/checkout@v3
2929
- name: Build Website
3030
working-directory: 08-Website
31-
run: npm install && npm run build
31+
run: npm install && npm run build && npm run clean
3232
- name: Setup Github Pages
3333
uses: actions/configure-pages@v3
3434
- name: Upload Github Pages
3535
uses: actions/upload-pages-artifact@v2
3636
with:
37-
path: |
38-
08-Website
39-
!08-Website/node_modules
37+
path: "08-Website"
4038
- name: Deploy GitHub Pages
4139
id: deployment
4240
uses: actions/deploy-pages@v2

08-Website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"scripts": {
1616
"build": "grunt",
17+
"clean": "grunt clean:distclean",
1718
"serve": "serve -l 12345 ."
1819
}
1920
}

0 commit comments

Comments
 (0)