Skip to content

Commit

Permalink
push when not PR
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Jan 6, 2023
1 parent 5515f06 commit bd28a47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
echo "Running netlify preview deploy"
netlify deploy --alias ${{ github.sha }}
elif [[ ${{ github.event_name }} == 'push' && github.ref == 'refs/heads/main' ]]; then
elif [[ ${{ github.event_name }} != 'pull_request' && ${{ github.ref }} == 'refs/heads/main' ]]; then
echo "Running netlify production deploy"
netlify deploy --prod
else
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/validate_jsons.yaml

This file was deleted.

0 comments on commit bd28a47

Please sign in to comment.