hackerplaybook #29
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://m1ser4ble.github.io/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 master || echo "No changes to push." |