Skip to content

Commit

Permalink
Revert "TO REVERT: test workflows version update"
Browse files Browse the repository at this point in the history
This reverts commit d1dba92.
  • Loading branch information
ctmbl committed Jun 17, 2024
1 parent d1dba92 commit 23dbdd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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) || github.event_name == 'workflow_dispatch' }}
if: ${{ (github.event_name == 'push' && ! github.event.repository.fork) || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: 🛠️ Setup build directory
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
# Upload the build to the remote server location: the volume shared by the nginx container serving http requests
- name: 🚀 Upload
run: |
ls -l ./build/blog/prod
rsync --archive --stats --verbose --delete ./build/blog/prod/* ${{ secrets.CI_USER_NAME }}@iscsc.fr:${{ secrets.REPO_PATH_ON_REMOTE }}/build/blog/prod
- name: ⏬ Remote git pull
run: |
Expand All @@ -97,8 +97,8 @@ jobs:
# Finally notify of the new article (if any) on the iScsc discord server
# action jitterbit/get-changed-files@v1 doesn't support 'workflow_dispatch' events: https://github.com/jitterbit/get-changed-files/issues/38
notify:
# needs: [deploy]
# if: ${{ github.event_name != 'workflow_dispatch' }}
needs: [deploy]
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
# Checkout repo, no need to checkout submodule
Expand All @@ -125,7 +125,7 @@ jobs:
echo "${{ steps.files.outputs.modified }}"
echo "Added+Modified:"
echo "${{ steps.files.outputs.added_modified }}"
# - name: 📨 Notify on Discord
# run: |
# python3 -m pip install requests PyYAML
# python3 ./scripts/new_article.py ${{ steps.files.outputs.added }}
- name: 📨 Notify on Discord
run: |
python3 -m pip install requests PyYAML
python3 ./scripts/new_article.py ${{ steps.files.outputs.added }}
Empty file removed TO_DELETE
Empty file.

0 comments on commit 23dbdd1

Please sign in to comment.