Skip to content

[ci] Add basic regression test to PRs #36

[ci] Add basic regression test to PRs

[ci] Add basic regression test to PRs #36

Workflow file for this run

name: Build and deploy docs
on:
push:
branches:
- main
- main-**
jobs:
build-upload-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "modm update bot"
- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install modm-data with docs dependencies
run: |
pip3 install ".[docs]"
- name: Clone modm-ext/data.modm.io repository
uses: actions/checkout@v3
with:
repository: modm-ext/data.modm.io
ssh-key: ${{secrets.SSH_KEY_DATA_MODM_IO}}
path: docs/data.modm.io
- name: Build Homepage
run: |
make build-homepage
- name: Push New Docs to Github
run: |
cd docs/data.modm.io
git add -A
git diff-index --quiet HEAD || git commit -m "Update"
git push origin main