Try without token #540
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/git-auto-commit-action@v3.0.0 | |
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/git-auto-commit-action@v3.0.0 | |
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/git-auto-commit-action@v3.0.0 | |
with: | |
branch: master | |
commit_message: | | |
:alien: make search | |
Sent from Github Actions (see .github/workflows/make.yml ) | |
- uses: jakejarvis/hugo-build-action@v0.57.2 | |
name: make website | |
with: | |
#args: --minify -s hugo/ | |
args: -s hugo/ | |
- name: Copy website to docs/ | |
run: cp -a hugo/public/. docs | |
- uses: stefanzweifel/git-auto-commit-action@v3.0.0 | |
name: Commit updates | |
with: | |
branch: master | |
commit_message: | | |
:alien: make website | |
Sent from Github Actions (see .github/workflows/make.yml ) |