Skip to content

Commit

Permalink
docs: redeploy site when README.md changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Jul 7, 2023
1 parent 07ba711 commit 7a64a0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- 'docs/**'
- 'modules/**'
- 'README.md'

jobs:
deploy:
Expand All @@ -20,12 +21,11 @@ jobs:
submodules: true
fetch-depth: 0

- uses: cachix/install-nix-action@v16
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.8.0pre20220311_d532269/install
extra_nix_config: |
experimental-features = nix-command flakes
allow-import-from-derivation = true
- name: install nix
uses: cachix/install-nix-action@v20

- name: configure cache
uses: DeterminateSystems/magic-nix-cache-action@v1

- name: build
run: nix run '.#docs' -- --minify
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Or, if you're not using flakes, a `default.nix` file (build with `nix-build`):
rev = "main";
}) }:
(kubenix.evalModules.x86_64-linux {
module = {kubenix, ... }: {
module = { kubenix, ... }: {
imports = [ kubenix.modules.k8s ];
kubernetes.resources.pods.example.spec.containers.nginx.image = "nginx";
};
Expand Down

0 comments on commit 7a64a0f

Please sign in to comment.