Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,8 @@ jobs:

# Making the bash script here so we don't accidentally deploy
- name: Deploy docs
working-directory: ./docs
run: |
echo "deploying docs to prod"
yarn install
yarn build

if ! deploy_output=$(yarn netlify deploy --site aztec-docs-dev --prod 2>&1); then
echo "Netlify deploy failed with error:"
echo "$deploy_output"
exit 1
fi
./docs/bootstrap.sh release

- name: Reindex with Typesense docsearch-scraper
run: |
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/reindex-typesense.yml

This file was deleted.

6 changes: 3 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function build {
yarn-project
boxes
playground
# docs
docs
release-image
aztec-up
)
Expand Down Expand Up @@ -247,7 +247,7 @@ function release {
# + noir
# + yarn-project => NPM publish to dist tag, version is our REF_NAME without a leading v.
# aztec-up => upload scripts to prod if dist tag is latest
# docs, playground => publish if dist tag is latest. TODO Link build in github release.
# playground => publish if dist tag is latest. TODO Link build in github release.
# release-image => push docker image to dist tag.
# boxes/l1-contracts => mirror repo to branch equal to dist tag (master if latest). Also mirror to tag equal to REF_NAME.

Expand All @@ -269,7 +269,7 @@ function release {
boxes
aztec-up
playground
# docs
# docs # released here /.github/workflows/docs-deploy.yml
release-image
)
if [ $(arch) == arm64 ]; then
Expand Down
16 changes: 14 additions & 2 deletions docs/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ function build_docs {
cache_upload docs-$hash.tar.gz build
}

function release_docs {
echo "deploying docs to prod"
yarn install
yarn build

if ! deploy_output=$(yarn netlify deploy --site aztec-docs-dev --prod 2>&1); then
echo "Netlify deploy failed with error:"
echo "$deploy_output"
exit 1
fi
}

case "$cmd" in
"clean")
git clean -fdx
Expand All @@ -42,8 +54,8 @@ case "$cmd" in
"hash")
echo "$hash"
;;
"release-preview")
release_preview
"release")
release_docs
;;
*)
echo "Unknown command: $cmd"
Expand Down