Skip to content

Update

Update #45

Workflow file for this run

name: BuildPages
on: [push, pull_request]
jobs:
test:
name: Build Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.0 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: actions/setup-node@v2
with:
node-version: '16.13.0'
- run: yarn
- run: yarn build:css
- run: rm -rf .sass-cache
- run: bundle exec jekyll build -d docs/
- run: |
git config --local user.email "whyruby@gmail.com"
git config --local user.name "qichunren"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add docs
git commit --allow-empty -m "Auto build pages in docs directory."
git push