File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ jobs:
4141 bundler-cache : true
4242
4343 - name : Build site
44- run : bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }} "
44+ run : bundle exec jekyll b -d "_site"
4545 env :
4646 JEKYLL_ENV : " production"
4747
4848 - name : Debug _site directory
4949 run : |
50- echo "Base path: ${{ steps.pages.outputs.base_path }} "
51- ls -R "_site${{ steps.pages.outputs.base_path }} "
50+ echo "Base path: _site "
51+ ls -R "_site"
5252
5353 - name : Test site
5454 run : |
5858 uses : actions/upload-artifact@v4
5959 with :
6060 name : github-pages
61- path : " _site${{ steps.pages.outputs.base_path }} "
61+ path : " _site"
6262 retention-days : 1 # 仅保留 1 天,避免长期存储
6363
6464 deploy :
6969 needs : build
7070
7171 steps :
72- - name : Download site artifact
73- uses : actions/download-artifact@v4
74- with :
75- name : github-pages
76- path : ./artifact
77-
7872 - name : Deploy to GitHub Pages
7973 id : deployment
8074 uses : actions/deploy-pages@v2
81- with :
82- artifact_path : ./artifact
You can’t perform that action at this time.
0 commit comments