Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

openMINDS_central_build #1466

openMINDS_central_build

openMINDS_central_build #1466

Workflow file for this run

# Adapted from https://github.com/HumanBrainProject/openMINDS/blob/871e382/.github/workflows/validate-schemas.yml
# MIT licensed
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: openMINDS_central_build
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
# No matter which branch has received the push, we're going to operate on the main branch (since we build everything)
repository: HumanBrainProject/openMINDS
ref: main
path: .
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Checkout openMINDS
uses: actions/checkout@v2
with:
repository: HumanBrainProject/openMINDS
ref: main
path: openMINDS
- name: Checkout documentation branch
uses: actions/checkout@v2
with:
repository: HumanBrainProject/openMINDS
ref: documentation
path: openMINDS_documentation
- name: Run build
run: |
set -e
chmod +x build.sh
./build.sh
- name: Push documentation and package
run: |
cd openMINDS_documentation
git config user.name openMINDS
git config user.email openMINDS@ebrains.eu
if [[ $(git add . --dry-run | wc -l) -gt 0 ]]; then
git add .
git commit -m "Update of documentation"
git push
else
echo "Nothing to commit"
fi
cd ..
rm -rf openMINDS_documentation
- name: Push vocabulary extraction
run: |
git config user.name openMINDS
git config user.email openMINDS@ebrains.eu
if [[ $(git add vocab --dry-run | wc -l) -gt 0 ]]; then
git add vocab
git commit -m "Automated vocabulary extraction"
git push
else
echo "Nothing to commit"
fi