add 2024-02-23 参与 Uyuni 社区活动 (#212) #327
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 | |