add case insensitive redirects for all _materials #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: Preprocessing to build website | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
copy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.x' | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pyyaml==6.0.0 | |
- name: copy REMARK metadata | |
run: python scripts/populate_materials.py | |
- name: case insensitive redirects | |
run: python scripts/caseinsensitive_redirects.py | |
- name: update gh-pages branch | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
git checkout --orphan gh-pages | |
git add . | |
git commit -m "autopull REMARKs $(date)" | |
git push --force origin gh-pages |