build based on ff48e5f #15
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 xml sitemap | |
on: | |
push: | |
branches: | |
- gh-pages | |
jobs: | |
sitemap_job: | |
runs-on: ubuntu-latest | |
name: Generate a sitemap | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Generate the sitemap | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://nonlinearoscillations.github.io/HarmonicBalance.jl/ | |
- name: Commit and push | |
run: | | |
if [[ `git status --porcelain sitemap.xml` ]]; then | |
git config --global user.name 'github-actions' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git add sitemap.xml | |
git commit -m "Automated sitemap update" sitemap.xml | |
git push | |
fi |