mirror of
https://github.com/mipmip/home-manager-option-search.git
synced 2024-08-17 19:10:50 +03:00
38 lines
946 B
YAML
38 lines
946 B
YAML
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
|
|
|
|
- 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.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
|