From f34cfb4946015b8eb6e534efccc132c0cedceda4 Mon Sep 17 00:00:00 2001 From: ES-Alexander Date: Fri, 15 Nov 2024 22:12:20 +1100 Subject: [PATCH] workflows: deploy: delete old docs before uploading new ones --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a9923f4..c5c2d7d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,6 +32,9 @@ jobs: - name: Upload official docs if: ${{ github.event_name != 'pull_request' }} run: | + # Delete the old docs (if they exist) + aws s3 rm --recursive public s3://br-www-docs/docs/${{ github.ref_name }} + # Upload the new ones aws s3 cp --recursive public s3://br-www-docs/docs/${{ github.ref_name }} # - name: Upload proposal preview