Skip to content

Commit a9390f7

Browse files
authored
initial jekyll build/deploy workflow
1 parent 3af510f commit a9390f7

File tree

1 file changed

+46
-15
lines changed

1 file changed

+46
-15
lines changed

.github/workflows/main.yml

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
1-
# name: Jekyll deploy
2-
3-
# on: [push]
4-
5-
# jobs:
6-
# build_and_deploy:
7-
# runs-on: ubuntu-latest
8-
# steps:
9-
# - uses: actions/checkout@v1
10-
# - name: Build & Deploy to GitHub Pages
11-
# env:
12-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13-
# GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
14-
# GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
15-
# uses: BryanSchuetz/jekyll-deploy-gh-pages@master
1+
# References
2+
# https://github.com/limjh16/jekyll-action-ts/blob/master/.github/workflows/workflow.yml
3+
4+
name: Build and deploy Jekyll site
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- master
11+
paths-ignore:
12+
- .cache/**
13+
- .github/**
14+
- _drafts/**
15+
- _draftsOldTumblr/**
16+
- _writing/**
17+
- README.md
18+
- PUBLISHING.md
19+
20+
jobs:
21+
jekyll:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: 📂 checkout
25+
uses: actions/checkout@v2
26+
27+
- name: 💎 setup ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: .ruby-version
31+
32+
- name: 🔨 install dependencies & build site
33+
uses: limjh16/jekyll-action-ts@v2
34+
with:
35+
enable_cache: true
36+
# format_output: true
37+
custom_opts: '--lsi'
38+
39+
# - name: 🚀 deploy
40+
# uses: peaceiris/actions-gh-pages@v3.6.4
41+
# with:
42+
# github_token: ${{ secrets.GITHUB_TOKEN }}
43+
# publish_dir: ./_site
44+
# publish_branch: gh-pages
45+
# commit_message: ${{ github.event.head_commit.message }}
46+
# full_commit_message: ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)