Merge pull request #188 from reshamas/blog-adam #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Jekyll Archives | |
# description: Generate categories, tags and years archive files. | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "_posts/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create required folders | |
run: | | |
mkdir -p _archives/categories | |
mkdir -p _archives/tags | |
mkdir -p _archives/years | |
- name: Generate Jekyll Archives | |
uses: kannansuresh/jekyll-blog-archive-workflow@master | |
with: | |
archive_url: "https://blog.scikit-learn.org/archives/archivedata" | |
archive_folder_path: "_archives" | |
- name: setup git config | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: commit | |
run: | | |
git add --all | |
git commit -m "Created and updated archive files." || echo "No changes to commit." | |
git push origin main || echo "No changes to push." |