File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- name : Publish docs to GitHub Pages (per-branch, no build)
1+ name : Publish dist to GitHub Pages (per-branch, no build)
22
33on :
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
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>
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 # чистим ТОЛЬКО свою подпапку
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default defineConfig({
1717 } ) ,
1818 ] ,
1919 build : {
20- outDir : 'docs ' ,
20+ outDir : 'dist ' ,
2121 } ,
2222 resolve : {
2323 alias : {
You can’t perform that action at this time.
0 commit comments