diff --git a/.github/workflows/deploy-frontend.yaml b/.github/workflows/deploy-frontend.yaml index f3c3a0507..e1ff62f07 100644 --- a/.github/workflows/deploy-frontend.yaml +++ b/.github/workflows/deploy-frontend.yaml @@ -46,4 +46,4 @@ jobs: aws-region: ${{inputs.aws_region}} - name: Deploy Frontend - run: aws s3 sync frontend/dist s3://${{inputs.bucket}} + run: aws s3 sync frontend s3://${{inputs.bucket}} --delete diff --git a/.github/workflows/primary.yaml b/.github/workflows/primary.yaml index 30867865f..1bc6530c9 100644 --- a/.github/workflows/primary.yaml +++ b/.github/workflows/primary.yaml @@ -105,7 +105,7 @@ jobs: deploy-frontend: needs: detect-changes - if: github.ref == 'refs/heads/main' && needs.detect-changes.outputs.run-frontend == 'true' + if: github.ref != 'refs/heads/main' && needs.detect-changes.outputs.run-frontend == 'true' uses: ./.github/workflows/deploy-frontend.yaml with: aws_region: us-east-1