Skip to content

2025-12-02-17:02: 调整 pages.yml, 为 Action build 做准备 #3

2025-12-02-17:02: 调整 pages.yml, 为 Action build 做准备

2025-12-02-17:02: 调整 pages.yml, 为 Action build 做准备 #3

Workflow file for this run

# GitHub Actions workflow to build and deploy a Jekyll site to GitHub Pages
name: Build and Deploy Site
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build site
run: bundle exec jekyll build --trace
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4