File tree Expand file tree Collapse file tree 4 files changed +18
-38
lines changed Expand file tree Collapse file tree 4 files changed +18
-38
lines changed Original file line number Diff line number Diff line change 44
44
45
45
# Making the bash script here so we don't accidentally deploy
46
46
- name : Deploy docs
47
- working-directory : ./docs
48
47
run : |
49
- echo "deploying docs to prod"
50
- yarn install
51
- yarn build
52
-
53
- if ! deploy_output=$(yarn netlify deploy --site aztec-docs-dev --prod 2>&1); then
54
- echo "Netlify deploy failed with error:"
55
- echo "$deploy_output"
56
- exit 1
57
- fi
48
+ ./docs/bootstrap.sh release
58
49
59
50
- name : Reindex with Typesense docsearch-scraper
60
51
run : |
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ function build {
197
197
yarn-project
198
198
boxes
199
199
playground
200
- # docs
200
+ docs
201
201
release-image
202
202
spartan
203
203
aztec-up
@@ -248,7 +248,7 @@ function release {
248
248
# + noir
249
249
# + yarn-project => NPM publish to dist tag, version is our REF_NAME without a leading v.
250
250
# aztec-up => upload scripts to prod if dist tag is latest
251
- # docs, playground => publish if dist tag is latest. TODO Link build in github release.
251
+ # playground => publish if dist tag is latest. TODO Link build in github release.
252
252
# release-image => push docker image to dist tag.
253
253
# boxes/l1-contracts => mirror repo to branch equal to dist tag (master if latest). Also mirror to tag equal to REF_NAME.
254
254
@@ -270,7 +270,7 @@ function release {
270
270
boxes
271
271
aztec-up
272
272
playground
273
- # docs
273
+ # docs # released here /.github/workflows/docs-deploy.yml
274
274
release-image
275
275
)
276
276
if [ $( arch) == arm64 ]; then
Original file line number Diff line number Diff line change @@ -32,6 +32,18 @@ function build_docs {
32
32
cache_upload docs-$hash .tar.gz build
33
33
}
34
34
35
+ function release_docs {
36
+ echo " deploying docs to prod"
37
+ yarn install
38
+ yarn build
39
+
40
+ if ! deploy_output=$( yarn netlify deploy --site aztec-docs-dev --prod 2>&1 ) ; then
41
+ echo " Netlify deploy failed with error:"
42
+ echo " $deploy_output "
43
+ exit 1
44
+ fi
45
+ }
46
+
35
47
case " $cmd " in
36
48
" clean" )
37
49
git clean -fdx
@@ -42,8 +54,8 @@ case "$cmd" in
42
54
" hash" )
43
55
echo " $hash "
44
56
;;
45
- " release-preview " )
46
- release_preview
57
+ " release" )
58
+ release_docs
47
59
;;
48
60
* )
49
61
echo " Unknown command: $cmd "
You can’t perform that action at this time.
0 commit comments