Skip to content

Commit

Permalink
TO BE REVERTED: Test of deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed May 5, 2024
1 parent 5b22c95 commit 14b201d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:
- name: Debug
run: |
echo ${{ github.event.repository.fork }}
echo ${{ github.event_name }}
echo ${{ '1' == '1' }}
echo ${{ ('1' == '1') }}
echo ${{ ('1' == '1') || 'a' == 'b' }}
echo ${{ ('1' == '1' && '2' == '2') }}
echo ${{ ('1' == '1' && '2' == '2') || 'a' == 'b' }}
echo ${{ github.event_name == 'pull_request' }}
echo ${{ github.event.repository.fork == 'false' }}
echo ${{ (github.event_name == 'pull_request') }}
echo ${{ (github.event_name == 'pull_request' && github.event.repository.fork == 'false') }}
echo ${{ (github.event_name == 'pull_request') || github.event_name == 'workflow_dispatch' }}
echo ${{ (github.event_name == 'pull_request' && github.event.repository.fork == 'false') || github.event_name == 'workflow_dispatch' }}
# Checkout repo AND ITS SUBMODULES
- name: 🛒 Checkout
Expand Down Expand Up @@ -59,7 +72,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_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: 🛠️ Setup build directory
Expand All @@ -83,6 +96,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
Expand Down

0 comments on commit 14b201d

Please sign in to comment.