-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (38 loc) · 1.02 KB
/
update.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
name: update-and-publish
on:
schedule:
# run every 12 hours
- cron: '0 */12 * * *'
env:
CARGO_TERM_COLOR: always
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: generate
run: |
git config --global --add safe.directory '*'
./scripts/install-tailwind.sh
./scripts/install-pagefind.sh
./scripts/bips.sh
./scripts/tailwind.sh
./scripts/static.sh
./scripts/generate.sh
- name: zola
run: |
wget -q https://github.com/getzola/zola/releases/download/v0.18.0/zola-v0.18.0-x86_64-unknown-linux-gnu.tar.gz
tar xzf zola*.tar.gz
cd web && ../zola build && cd ..
rm -rf zola*
- name: pagefind
run: |
pagefind --site web/public
- name: commit and push
uses: EndBug/[email protected]
with:
default_author: github_actions
branch: master
message: 'cron: update bips submodule and build'
push: true