-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (47 loc) · 1.43 KB
/
main.yml
File metadata and controls
55 lines (47 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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
- jekyll-build-deploy-workflow
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 system dependencies
run: sudo apt-get install libgsl-dev
- name: 🔨 install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
# format_output: true
custom_opts: '--lsi --profile'
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.JEKYLL_GITHUB_TOKEN_PAT }}
- id: currentdate
name: 📅 get current date and time
run: echo "::set-output name=date_str::$(date)"
- name: 🚀 deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: jekyll-build-deploy-workflow-gh-pages
commit_message: "Update site: ${{ steps.currentdate.outputs.date_str }}"