home-manager-option-search/.github/workflows/update.yml

38 lines
946 B
YAML
Raw Permalink Normal View History

2022-01-06 15:20:47 +03:00
name: "parse and deploy"
on:
schedule:
- cron: '05 4 * * *'
push:
jobs:
build:
runs-on: ubuntu-latest
name: parse options and create search
steps:
2022-01-06 15:36:16 +03:00
2024-02-21 11:54:45 +03:00
- uses: actions/checkout@v4
2024-03-23 16:41:18 +03:00
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
2024-04-16 22:58:26 +03:00
- name: extract-options-master (unstable)
2024-07-31 17:20:58 +03:00
run: ./scripts/build_and_parse_hm_options.rb
2024-03-23 16:41:18 +03:00
2024-03-23 18:26:40 +03:00
- name: update gitignore
run: echo result > .gitignore
2024-03-23 18:02:16 +03:00
2024-07-31 17:20:58 +03:00
- name: extract-options-release-24.05 (stable)
2024-03-23 18:11:55 +03:00
env:
2024-07-31 17:20:58 +03:00
HM_RELEASE: release-24.05
run: ./scripts/build_and_parse_hm_options.rb
2024-03-23 19:32:17 +03:00
2024-04-26 19:39:07 +03:00
- name: Build Hugo
2024-04-26 19:41:58 +03:00
run: nix run nixpkgs#hugo -- --minify
2024-04-26 19:39:07 +03:00
2022-01-06 15:32:50 +03:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2024-03-23 18:02:16 +03:00
publish_branch: pages-${{ github.ref_name }}
2024-04-26 19:39:07 +03:00
publish_dir: ./public