Custom Github pages post-processing #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: Update index.html in GH Pages | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
update-gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: Replace 'version/stable' with 'version/dev' in index.html | |
run: | | |
sed -i 's/version\/stable/version\/dev/g' index.html | |
- name: "Commit changes" | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
message: "update index.html" |