Add codespell support (config, workflow to detect/not fix) and make i… #104
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: Build and deploy | |
on: | |
push: | |
branches: [ mkdocs ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: mkdocs | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Setup Git & Install dependencies | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "nipreps-bot" | |
python -m pip install --upgrade pip | |
pip install -r mkdocs/requirements.txt | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
path: www | |
- name: Clean up master | |
run: | | |
cd www/ | |
git ls-files -z | xargs -0 git rm -f | |
- name: Generate members grid | |
env: | |
GITHUB_TOKEN: ${{ secrets.NIPREPSBOT_QUERY_ORG }} | |
run: | | |
cd mkdocs/ | |
python scripts/generate_members_grid.py | |
- name: Build | |
run: | | |
cd mkdocs/ | |
mkdocs build -d ../www/ | |
- name: Deploy | |
run: | | |
cd www/ | |
echo -e "a\n*\nq\n"|git add -i | |
git commit -am "auto: deploy new website" | |
git push |