[add] new post #350
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 and Deploy My Jekyll Site to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 📂 setup github actions | |
uses: actions/checkout@v3 | |
# setup ruby environment | |
- name: 💎 setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.0 | |
- name: 🔨 install dependencies & build site | |
uses: limjh16/jekyll-action-ts@v2 | |
with: | |
enable_cache: true | |
- name: 🚀 deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site |