-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.04 KB
/
jekyll.yml
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
name: Jekyll site CI. Publishes org mode to html, create tag pages, push, and build jekyll.
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
setupsite:
# [SKIP] Tag to skip Emacs org mode to html and tag generation
if: "!contains(github.event.head_commit.message, '[SKIP]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: purcell/setup-emacs@v6.0
with:
version: 28.1
- name: Run Emacs Org mode publish to convert Org mode files to HTML
run: ./emacs_headless_publish.sh
- name: Setup new tags if any
run: ./create_tag_pages.sh
# only publish the pages for master/main branch activity
- name: Publish new files if any
if: github.event_name != 'pull_request'
run: |
git config --local user.email "action@github.com" && \
git config --local user.name "GitHub Action" && \
git add . && \
git commit -am "[SKIP] New org mode articles and/or tags" && \
git push