diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 11dc9f6..2bb4aac 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -59,7 +59,7 @@ jobs: # If for any reason you want to trigger this step on your fork remove the following line, # trigger manually or open an issue https://github.com/iScsc/blog.iscsc.fr/issues, # we'll find a better way to skip this step. - if: ${{ (github.event_name == 'push' && github.event.repository.fork == 'false') || github.event_name == 'workflow_dispatch' }} + if: ${{ (github.event_name == 'pull_request' && github.event.repository.fork == 'false') || github.event_name == 'workflow_dispatch' }} runs-on: ubuntu-latest steps: - name: 🛠️ Setup build directory @@ -83,6 +83,7 @@ jobs: - name: 🔑 Populate Key run: | echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa + exit 1 # Upload the build to the remote server location: the volume shared by the nginx container serving http requests - name: 🚀 Upload