-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (73 loc) · 2.13 KB
/
make.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Make
on:
push:
branches:
- master
paths-ignore:
# exclude auto generated files
- 'docs/**'
- 'hugo/content/lists/**'
- 'hugo/data/lists/**'
- 'hugo/content/persons/**'
- 'hugo/data/persons/**'
- 'hugo/data/spravki/**'
- 'hugo/data/korps.yaml'
- 'search/elasticsearch-*'
# exclude doc updates
- 'README.md'
jobs:
make:
runs-on: ubuntu-latest
steps:
- name: install deps
run: |
sudo apt-get install python3-setuptools
pip3 install oyaml
- uses: actions/checkout@v4
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- run: |
make spravki
- name: Commit updates
uses: stefanzweifel/[email protected]
with:
branch: master
commit_message: |
:alien: make spravki
Sent from Github Actions (see .github/workflows/make.yml )
- run: |
make hugo
- name: Commit updates
uses: stefanzweifel/[email protected]
with:
branch: master
commit_message: |
:alien: make hugo
Sent from Github Actions (see .github/workflows/make.yml )
- run: |
make search
- name: Commit updates
uses: stefanzweifel/[email protected]
with:
branch: master
commit_message: |
:alien: make search
Sent from Github Actions (see .github/workflows/make.yml )
- uses: jakejarvis/[email protected]
name: make website
with:
#args: --minify -s hugo/
args: -s hugo/
- name: Copy website to docs/
run: cp -a hugo/public/. docs
- uses: stefanzweifel/[email protected]
name: Commit updates
with:
branch: master
commit_message: |
:alien: make website
Sent from Github Actions (see .github/workflows/make.yml )