Skip to content

Update wbs4.yml

Update wbs4.yml #1276

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Restore bundle cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install apt requirements
run: |
sudo apt-get update
sudo apt-get install libxslt-dev libxml2-dev
gem install bundler
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
- uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
- name: GitHub Pages action
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
#deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
#publish_branch: master
publish_dir: _site
allow_empty_commit: true