-
-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (35 loc) · 1.13 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
name: "parse and deploy"
on:
schedule:
- cron: '05 4 * * *'
push:
jobs:
build:
runs-on: ubuntu-latest
name: parse options and create search
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: extract-options-master (unstable)
run: ./scripts/build_and_parse_hm_options.rb
- name: update gitignore
run: echo result > .gitignore
- name: extract-options-release-24.11 (new-stable)
env:
HM_RELEASE: release-24.11
run: ./scripts/build_and_parse_hm_options.rb
- name: extract-options-release-24.05 (stable)
env:
HM_RELEASE: release-24.05
run: ./scripts/build_and_parse_hm_options.rb
- name: Build Hugo
run: nix run nixpkgs#hugo -- --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: pages-${{ github.ref_name }}
publish_dir: ./public