Skip to content

Commit

Permalink
fix(checks): Website Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
maydayv7 committed Dec 20, 2023
1 parent e9e5ae8 commit ea0b7c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions netlify.toml → checks/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ command = """
export NP_GIT=$(which git)
wget -nv https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable
chmod +x nix-portable
./nix-portable nix flake update systems
./nix-portable nix build --impure --expr "with import ./packages; callPackage ./site { site = ${DEPLOY_PRIME_URL}; }"
./nix-portable nix build --impure --expr "with import <nixpkgs> {}; callPackage ./site { site = ${DEPLOY_PRIME_URL}; }"
./nix-portable nix shell nixpkgs#bash -c "bash" -c "cp -rL result build"
"""
2 changes: 1 addition & 1 deletion scripts/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ in
sudo nix-collect-garbage -d
sudo rm -rf /run/secrets/*
sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system
sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch
nixos apply --activate
fi
newline
echo "Running De-Duplication..."
Expand Down
2 changes: 1 addition & 1 deletion site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ zola -r site serve

Then click [here](http://localhost:1111)

To build the site, run `nix build`. In order to override the Base URL, <code>nix-build -E "with import ./.; callPackage ./site { site = <b><i>URL</i></b>; }"</code> can be used
To build the site, run `nix build`. In order to override the Base URL, <code>nix-build -E "with import ../packages; callPackage ./site { site = <b><i>URL</i></b>; }"</code> can be used

#### Continuous Integration

Expand Down

0 comments on commit ea0b7c9

Please sign in to comment.