add 2023-08-31Tumbleweed 因开放构建服务迁移而减慢更新速度 (#174) #289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Site Build | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the site in the jekyll/builder container | |
run: | | |
docker run \ | |
--entrypoint /bin/sh \ | |
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ | |
docker.io/library/ruby:3.1.3-bullseye -c "gem install bundler jekyll && chmod 777 /srv/jekyll && cd /srv/jekyll && bundle install && jekyll build --future --trace" | |
- name: Deploy to gh-pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: _site | |