-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.03 KB
/
makefile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 and Publish Site
env:
PUSH_SECRET: ${{ secrets.PUSH_SECRET }}
run: |
hugo
cp public/ontology/index-en.html public/ontology/index.html
rm -rfv oda-hub.github.io
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