Add explanatory text on tests #70
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: Makefile CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: sudo apt-get install -y build-essential hugo | |
- name: Configure git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ODA Bot" | |
- name: Prepare Ontology | |
run: make -B ontology | |
- name: Compile Ontology | |
run: make -B ontology-web | |
- name: Compile Hugo Site | |
run: | | |
hugo | |
cp public/ontology/index-en.html public/ontology/index.html | |
rm -rfv oda-hub.github.io | |
- name: Publish Site | |
if: ${{ ! github.event.pull_request }} | |
env: | |
PUSH_SECRET: ${{ secrets.PUSH_SECRET }} | |
run: | | |
git clone https://mmoda-bot:[email protected]/oda-hub/oda-hub.github.io/ | |
rsync -av public/ oda-hub.github.io/ | |
cd oda-hub.github.io/ | |
git add * | |
git commit -a -m "update" | |
git push | |