Skip to content

Merge pull request #507 from TheAxonLab/enh/datalad-on-curnagl #254

Merge pull request #507 from TheAxonLab/enh/datalad-on-curnagl

Merge pull request #507 from TheAxonLab/enh/datalad-on-curnagl #254

Workflow file for this run

name: Build and deploy
on:
push:
branches: [ mkdocs ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: 'src/'
- 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 src/requirements.txt
- uses: actions/checkout@v3
with:
ref: gh-pages
path: 'www/'
- name: Clean up master
run: |
cd www/
git ls-files -z | xargs -0 git rm -f
- name: Build
run: |
cd src/
mkdocs build -d ../www/
touch ../www/.nojekyll
- name: Deploy
run: |
cd www/
echo -e "a\n*\nq\n"|git add -i
git commit -am "auto: deploy new website"
git push