Merge pull request #14 from maximedrouhin/patch-1 #24
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 & Deploy to Github Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📂 checkout code | |
uses: actions/checkout@v3 | |
- name: 💎 setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.4 | |
# - name: cache | |
# uses: actions/cache@v3 | |
# with: | |
# path: vendor/bundle | |
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
# restore-keys: | | |
# ${{ runner.os }}-gems- | |
- name: 🔨 build site with jekyll | |
uses: limjh16/jekyll-action-ts@v2 | |
with: | |
enable_cache: true | |
- name: 🚀 deploy site to gh-pages branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site |