Only upload to S3 if on main branch
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user