Skip to content

Commit ee6cad8

Browse files
authored
chore: deploy to ipfs and update deps (#2968)
2 parents 106f5b7 + 200c526 commit ee6cad8

13 files changed

+1033
-1608
lines changed

app/app.nix

+14
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@
5555
'';
5656
};
5757
};
58+
deploy-app-ipfs = {
59+
type = "app";
60+
program = pkgs.writeShellApplication {
61+
name = "deploy-app-ipfs";
62+
runtimeInputs = combinedDeps;
63+
text = ''
64+
${ensureAtRepositoryRoot}
65+
cd app/
66+
67+
nix build .#app
68+
npm_config_yes=true npx @fleek-platform/cli sites deploy
69+
'';
70+
};
71+
};
5872
};
5973
};
6074
}

app/fleek.config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"sites": [
3+
{
4+
"slug": "union-app",
5+
"distDir": "result",
6+
"buildCommand": "echo 'build done by nix'"
7+
}
8+
]
9+
}

dictionary.txt

+1
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ fetchzip
541541
fields
542542
fileset
543543
flamegraph
544+
fleek
544545
floorlog
545546
fmtlib
546547
foldl

docs/docs.nix

+16-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
packages = {
1111
docs = mkCi false (unstablePkgs.buildNpmPackage {
12-
npmDepsHash = "sha256-nnugNuwQybGENX7QAna0oZgtenUGsHaxKkIMxl/HrF8=";
12+
npmDepsHash = "sha256-YHawlfw4E8kaXb49bTSxgItGgUKTlHxAUqqkp2SZQkI=";
1313
src = ./.;
1414
srcs = [ ./. ./../evm/. ./../networks/genesis/. ./../versions/. ];
1515
sourceRoot = "docs";
@@ -64,6 +64,21 @@
6464
'';
6565
};
6666
};
67+
deploy-docs-ipfs = {
68+
type = "app";
69+
program = pkgs.writeShellApplication {
70+
name = "deploy-docs-ipfs";
71+
runtimeInputs = combinedDeps;
72+
text = ''
73+
${ensureAtRepositoryRoot}
74+
cd docs/
75+
76+
export PUPPETEER_SKIP_DOWNLOAD=1
77+
nix build .#docs
78+
npm_config_yes=true npx @fleek-platform/cli sites deploy
79+
'';
80+
};
81+
};
6782
};
6883
};
6984
}

docs/fleek.config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"sites": [
3+
{
4+
"slug": "union-docs",
5+
"distDir": "result",
6+
"buildCommand": "echo 'build done by nix'"
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)