Merge pull request #64 from rubykr/dependabot/bundler/nokogiri-1.16.5 #22
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: Deploy | |
on: | |
push: | |
branches: | |
- jekyll | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.0 | |
bundler-cache: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libtidy-dev | |
bundle install --jobs 4 --retry 3 | |
- name: Test | |
run: bundle exec rake test | |
- name: Gen page | |
run: bundle exec rake build | |
- name: Deploy to GitHub Pages | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: master | |
build_dir: _site | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |