Only upload to S3 if on main branch

This commit is contained in:
Fabrizio Branca
2024-03-01 15:21:55 +01:00
parent aeae4b46af
commit 29d82123af

View File

@@ -27,6 +27,8 @@ jobs:
deploy-test: deploy-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: github.ref == 'refs/heads/main'
# if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
environment: environment:
name: techradar name: techradar
url: http://techradar-test-aoe.s3-website.eu-central-1.amazonaws.com/techradar/index.html url: http://techradar-test-aoe.s3-website.eu-central-1.amazonaws.com/techradar/index.html