Update build.yml #96
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
# MIT licensed | |
name: openMINDS_documentation_build_pipeline | |
on: | |
workflow_dispatch: # This triggers the workflow when a webhook is received | |
push: | |
branches: | |
- pipeline | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
path: pipeline | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Checkout documentation branch | |
uses: actions/checkout@v3 | |
with: | |
path: upload | |
ref: main | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run build | |
run: | | |
cd pipeline | |
ls -alh | |
pip install -r requirements.txt | |
python build.py | |