Update config #542
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: 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 ) |