Skip to content

Commit 678b21f

Browse files
committed
chore: change output directory from docs to dist in Vite configuration
1 parent 40069ba commit 678b21f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish docs to GitHub Pages (per-branch, no build)
1+
name: Publish dist to GitHub Pages (per-branch, no build)
22

33
on:
44
push:
@@ -28,14 +28,14 @@ jobs:
2828
| sed -E 's#[/ ]+#-#g; s#[^a-z0-9._-]#-#g; s#-+#-#g; s#(^-|-$)##g')"
2929
echo "slug=$SLUG" >> $GITHUB_OUTPUT
3030
31-
- name: Ensure docs exists
31+
- name: Ensure dist exists
3232
run: |
33-
if [ ! -d docs ]; then
34-
echo "Folder 'docs' not found. Commit your built assets to docs/." >&2
33+
if [ ! -d dist ]; then
34+
echo "Folder 'dist' not found. Commit your built assets to dist/." >&2
3535
exit 1
3636
fi
3737
# SPA fallback (не билд, просто копия)
38-
[ -f docs/index.html ] && cp -f docs/index.html docs/404.html || true
38+
[ -f dist/index.html ] && cp -f dist/index.html dist/404.html || true
3939
4040
# main --> корень gh-pages. ВАЖНО: clean=false, чтобы не снести подпапки других веток.
4141
- name: Deploy main to root
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
token: ${{ secrets.GITHUB_TOKEN }}
4646
branch: gh-pages
47-
folder: docs
47+
folder: dist
4848
clean: false # не чистим весь корень, сохраняем подпапки других веток
4949

5050
# другие ветки --> gh-pages/<branch>
@@ -54,6 +54,6 @@ jobs:
5454
with:
5555
token: ${{ secrets.GITHUB_TOKEN }}
5656
branch: gh-pages
57-
folder: docs
57+
folder: dist
5858
target-folder: ${{ steps.vars.outputs.slug }}
5959
clean: true # чистим ТОЛЬКО свою подпапку

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig({
1717
}),
1818
],
1919
build: {
20-
outDir: 'docs',
20+
outDir: 'dist',
2121
},
2222
resolve: {
2323
alias: {

0 commit comments

Comments
 (0)