Skip to content

Commit d18750a

Browse files
2025-12-02-15:54: 尝试 Action build 并渲染
1 parent 0554edb commit d18750a

File tree

2 files changed

+20
-53
lines changed

2 files changed

+20
-53
lines changed

.github/workflows/jekyll-docker.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/pages.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
1-
name: Build and Deploy
1+
# GitHub Actions workflow to build and deploy a Jekyll site to GitHub Pages
2+
name: Build and Deploy Site
23

34
on:
45
push:
5-
branches: [main]
6-
7-
permissions:
8-
contents: read
9-
pages: write
10-
id-token: write
6+
branches:
7+
- main
118

129
jobs:
13-
deploy:
10+
build:
1411
runs-on: ubuntu-latest
15-
environment:
16-
name: github-pages
1712

1813
steps:
1914
- uses: actions/checkout@v4
2015

2116
- name: Setup Ruby
2217
uses: ruby/setup-ruby@v1
2318
with:
24-
ruby-version: 3.2
19+
ruby-version: '3.2'
2520

2621
- name: Install dependencies
27-
run: bundle install
22+
run: |
23+
gem install bundler
24+
bundle install
2825
2926
- name: Build site
30-
run: bundle exec jekyll build
27+
run: bundle exec jekyll build --trace
3128

32-
- name: Deploy
33-
uses: peaceiris/actions-gh-pages@v3
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
3431
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
publish_dir: ./_site
32+
path: _site
33+
34+
deploy:
35+
needs: build
36+
permissions:
37+
pages: write
38+
id-token: write
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)