Skip to content

Commit 0554edb

Browse files
2025-12-02-15:07: 添加 pages.yml, 尝试解决 Action 不自动 build 的问题
1 parent 2d2206d commit 0554edb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/pages.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: github-pages
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: 3.2
25+
26+
- name: Install dependencies
27+
run: bundle install
28+
29+
- name: Build site
30+
run: bundle exec jekyll build
31+
32+
- name: Deploy
33+
uses: peaceiris/actions-gh-pages@v3
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./_site

0 commit comments

Comments
 (0)