File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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."
You can’t perform that action at this time.
0 commit comments