feat: add archive #1
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@v2 | |
- name: Generate Jekyll Archives | |
uses: kannansuresh/jekyll-blog-archive-workflow@master | |
with: | |
archive_url: "https://afeish.github.io/archives/archivedata" | |
archive_folder_path: "_archives" | |
- name: setup git config | |
run: | | |
git config user.name "GitHub Actions Bot"s | |
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 master || echo "No changes to push." |