Skip to content

Commit dfd0e47

Browse files
authored
Only include needed files (#618)
1 parent 893766f commit dfd0e47

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish-pages.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ jobs:
2929
- name: Build
3030
run: yarn build
3131

32+
- name: Prepare artifact for GitHub Pages
33+
run: |
34+
mkdir ./gh-pages-artifact
35+
cp ./index.html ./gh-pages-artifact/
36+
cp -r ./dist ./gh-pages-artifact/
37+
3238
- name: Upload artifact
3339
uses: actions/upload-pages-artifact@v3
3440
with:
35-
# Upload entire repository
36-
path: "."
41+
# Upload the specific directory
42+
path: "./gh-pages-artifact"
3743

3844
deploy:
3945
needs: build

0 commit comments

Comments
 (0)