Skip to content

Commit 917489f

Browse files
authored
Update pages-deploy.yml
1 parent b25c520 commit 917489f

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/pages-deploy.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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: |
@@ -58,7 +58,7 @@ jobs:
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:
@@ -69,14 +69,6 @@ jobs:
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

0 commit comments

Comments
 (0)