Skip to content

Commit ba637a8

Browse files
CI Add simple workflow for jekyll
1 parent e81f80c commit ba637a8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: .github/workflows/add_archives.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Generate Jekyll Archives
2+
# description: Generate categories, tags and years archive files.
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- "_posts/**"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Create required folders
16+
run: |
17+
mkdir -p _archives/categories
18+
mkdir -p _archives/tags
19+
mkdir -p _archives/years
20+
21+
- name: Generate Jekyll Archives
22+
uses: kannansuresh/jekyll-blog-archive-workflow@master
23+
24+
- name: setup git config
25+
run: |
26+
git config user.name "GitHub Actions Bot"
27+
git config user.email "<>"
28+
29+
- name: commit
30+
run: |
31+
git add --all
32+
git commit -m "Created and updated archive files." || echo "No changes to commit."
33+
git push origin main || echo "No changes to push."

0 commit comments

Comments
 (0)