Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
initial jekyll build/deploy workflow
  • Loading branch information
0xdevalias authored Jul 26, 2020
commit a9390f76a9b7c4a8fcf7e01e28c85dad6e495d34
61 changes: 46 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
# name: Jekyll deploy

# on: [push]

# jobs:
# build_and_deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Build & Deploy to GitHub Pages
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
# GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
# uses: BryanSchuetz/jekyll-deploy-gh-pages@master
# References
# https://github.com/limjh16/jekyll-action-ts/blob/master/.github/workflows/workflow.yml

name: Build and deploy Jekyll site

on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- .cache/**
- .github/**
- _drafts/**
- _draftsOldTumblr/**
- _writing/**
- README.md
- PUBLISHING.md

jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- name: 📂 checkout
uses: actions/checkout@v2

- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version

- name: 🔨 install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
# format_output: true
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to enable this? Otherwise, remove it.

custom_opts: '--lsi'

# - name: 🚀 deploy
# uses: peaceiris/actions-gh-pages@v3.6.4
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./_site
# publish_branch: gh-pages
# commit_message: ${{ github.event.head_commit.message }}
# full_commit_message: ${{ github.event.head_commit.message }}