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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docs Deploy
name: Docs Scraper

on:
workflow_dispatch:
Expand All @@ -9,7 +9,7 @@ on:
- docs/**

jobs:
docs-pr:
docs-scraper:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -23,30 +23,6 @@ jobs:
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Enable Corepack
run: corepack enable

- name: Configure Git
run: |
git config --global user.name AztecBot
git config --global user.email tech@aztecprotocol.com

- name: Build dependencies
run: |
for project in noir barretenberg l1-contracts yarn-project; do
$project/bootstrap.sh
done

# Making the bash script here so we don't accidentally deploy
- name: Deploy docs
run: |
./docs/bootstrap.sh release

- name: Reindex with Typesense docsearch-scraper
run: |
docker run \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Build dependencies
run: |
for project in noir barretenberg l1-contracts yarn-project; do
$project/bootstrap.sh
CI=1 $project/bootstrap.sh
done

- name: Query new version
Expand Down
4 changes: 4 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ case "$cmd" in
echo_stderr -e "${yellow}Not testing or benching $REF_NAME because it is a release tag.${reset}"
fi
fi

if [ "$REF_NAME" = "master" ]; then
docs/bootstrap.sh release-docs
fi
;;
test|test_cmds|bench|release|release_dryrun)
$cmd "$@"
Expand Down
8 changes: 2 additions & 6 deletions docs/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ function release_docs {
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
yarn netlify deploy --site aztec-docs-dev --prod 2>&1
}

case "$cmd" in
Expand All @@ -54,7 +50,7 @@ case "$cmd" in
"hash")
echo "$hash"
;;
"release")
"release-docs")
release_docs
;;
*)
Expand Down