Skip to content

Commit

Permalink
chore: deploy to ipfs and update deps (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az authored Sep 17, 2024
2 parents 106f5b7 + 200c526 commit ee6cad8
Show file tree
Hide file tree
Showing 13 changed files with 1,033 additions and 1,608 deletions.
14 changes: 14 additions & 0 deletions app/app.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@
'';
};
};
deploy-app-ipfs = {
type = "app";
program = pkgs.writeShellApplication {
name = "deploy-app-ipfs";
runtimeInputs = combinedDeps;
text = ''
${ensureAtRepositoryRoot}
cd app/
nix build .#app
npm_config_yes=true npx @fleek-platform/cli sites deploy
'';
};
};
};
};
}
9 changes: 9 additions & 0 deletions app/fleek.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"sites": [
{
"slug": "union-app",
"distDir": "result",
"buildCommand": "echo 'build done by nix'"
}
]
}
1 change: 1 addition & 0 deletions dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ fetchzip
fields
fileset
flamegraph
fleek
floorlog
fmtlib
foldl
Expand Down
17 changes: 16 additions & 1 deletion docs/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
packages = {
docs = mkCi false (unstablePkgs.buildNpmPackage {
npmDepsHash = "sha256-nnugNuwQybGENX7QAna0oZgtenUGsHaxKkIMxl/HrF8=";
npmDepsHash = "sha256-YHawlfw4E8kaXb49bTSxgItGgUKTlHxAUqqkp2SZQkI=";
src = ./.;
srcs = [ ./. ./../evm/. ./../networks/genesis/. ./../versions/. ];
sourceRoot = "docs";
Expand Down Expand Up @@ -64,6 +64,21 @@
'';
};
};
deploy-docs-ipfs = {
type = "app";
program = pkgs.writeShellApplication {
name = "deploy-docs-ipfs";
runtimeInputs = combinedDeps;
text = ''
${ensureAtRepositoryRoot}
cd docs/
export PUPPETEER_SKIP_DOWNLOAD=1
nix build .#docs
npm_config_yes=true npx @fleek-platform/cli sites deploy
'';
};
};
};
};
}
9 changes: 9 additions & 0 deletions docs/fleek.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"sites": [
{
"slug": "union-docs",
"distDir": "result",
"buildCommand": "echo 'build done by nix'"
}
]
}
Loading

0 comments on commit ee6cad8

Please sign in to comment.