Skip to content

Use better GitHub Action setup #6

Use better GitHub Action setup

Use better GitHub Action setup #6

Workflow file for this run

name: GitHub Pages Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 19.8.1
- name: Install npm dependencies
run: npm install
- name: Build Jekyll
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
format_output: true
prettier_opts: '{ "useTabs": true }'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site