diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7fc67e2..868f5b4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -52,28 +52,10 @@ jobs: - name: Build run: npm run build - - name: Backup existing bucket contents - env: - GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.auth.outputs.credentials_file_path }} - run: | - gsutil mv gs://intact-frontend/** gs://intact-frontend/backup/ - echo "backup_done=true" >> $GITHUB_ENV - - name: Deploy to Google Cloud Bucket uses: google-github-actions/upload-cloud-storage@v2 #if: success() && github.ref == 'refs/heads/main' && env.backup_done == 'true' with: path: /dist/ destination: intact-frontend - parent: false - - - name: Remove backup - #if: success() && github.ref == 'refs/heads/main' && env.backup_done == 'true' - run: | - gsutil rm -r gs://intact-frontend/backup/ - - - name: Restore from backup (on failure) - #if: failure() && github.ref == 'refs/heads/main' && env.backup_done == 'true' - run: | - gsutil mv gs://intact-frontend-backup/** gs://intact-frontend/ - gsutil -m rm -r gs://intact-frontend-backup/ + parent: false \ No newline at end of file