Merge pull request #47 from ipdk-io/dandaly-patch-nov-update #109
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: build IPDK site | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout code | |
- uses: actions/checkout@v2 | |
# Use ruby/setup-ruby to shorten build times | |
# https://github.com/ruby/setup-ruby | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 # Not needed with a .ruby-version file | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
# use jekyll-action-ts to build | |
# https://github.com/limjh16/jekyll-action-ts | |
- uses: limjh16/jekyll-action-ts@v2 | |
with: | |
enable_cache: true | |
# use actions-gh-pages to deploy | |
# https://github.com/peaceiris/actions-gh-pages | |
- name: Deploy | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
# GITHUB_TOKEN secret is set up automatically | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site |