Skip to content

Update _config.yml

Update _config.yml #47

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- gh-pages # 或您的默认分支名称,如 master
pull_request:
branches:
- gh-pages # 或您的默认分支名称
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
#uses: actions/aws@v2.0.1
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1' # 您可以根据需要指定 Ruby 版本
bundler-cache: true # 缓存 gem 依赖项
- name: Install dependencies
run: |
cd docs
bundle install
- name: Build the site with Jekyll
run: |
cd docs
bundle exec jekyll build
- name: Deploy to GitHub Pages
#uses: peaceiris/actions-gh-pages@v3
uses: actions/checkout@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs