2020-06-22 12:20:56 +00:00
|
|
|
name: Build and deploy site to GitHub Pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
github-pages:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-06-22 12:29:26 +00:00
|
|
|
- uses: ruby/setup-ruby@v1
|
2020-06-22 12:20:56 +00:00
|
|
|
with:
|
2020-06-22 12:29:26 +00:00
|
|
|
ruby-version: 2.6
|
|
|
|
- uses: limjh16/jekyll-action-ts@v2
|
2020-06-22 12:20:56 +00:00
|
|
|
with:
|
2020-06-22 12:29:26 +00:00
|
|
|
enable_cache: true
|
|
|
|
format_output: true
|
|
|
|
jekyll_src: docs
|
|
|
|
gem_src: docs
|
|
|
|
- uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.JEKYLL_PAT }}
|
|
|
|
publish_dir: ./docs/_site
|