diff --git a/.github/workflows/deploy-to-amplify.yaml b/.github/workflows/deploy-to-amplify.yaml index 3e42f460..4714bbde 100644 --- a/.github/workflows/deploy-to-amplify.yaml +++ b/.github/workflows/deploy-to-amplify.yaml @@ -83,6 +83,9 @@ jobs: - name: Build the docs site run: mkdocs build + - name: Copy docs into _site + run: cp -r _site-docs _site/docs + - name: Deploy version branches to the website run: | ruby .scripts/merge-sitemaps.rb diff --git a/deploy-amplify.sh b/deploy-amplify.sh index b9934aa4..2d132375 100755 --- a/deploy-amplify.sh +++ b/deploy-amplify.sh @@ -3,7 +3,7 @@ set -eo pipefail rm -f wiremock-org-amplify.zip -zip -q -r wiremock-org-amplify.zip _site/* +(cd _site && zip -q -r ../wiremock-org-amplify.zip *) deploymentData=$(aws amplify create-deployment --app-id d1rkup1qsf4ckf --branch-name prod) jobId=$(echo $deploymentData | jq -r '.jobId')