diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 997a2d0..4079b27 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -67,7 +67,29 @@ jobs: run: | echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa - # Finally upload the build to the remote server location: the volume shared by the nginx container serving http requests + # Upload the build to the remote server location: the volume shared by the nginx container serving http requests - name: 🚀 Upload run: | rsync --archive --stats --verbose --delete ./build/blog/* ${{ secrets.CI_USER_NAME }}@iscsc.fr:${{ secrets.STATIC_WEBSITE_PATH}} + + # Finally notify of the new article (if any) on the iScsc discord server + - name: 📨 Notify on Discord + uses: jitterbit/get-changed-files@v1 + id: files + with: + format: space-delimited + #token: ${{ secrets.GITHUB_TOKEN }} + - name: Printing + run: | + echo "All:" + echo "${{ steps.files.outputs.all }}" + echo "Added:" + echo "${{ steps.files.outputs.added }}" + echo "Removed:" + echo "${{ steps.files.outputs.removed }}" + echo "Renamed:" + echo "${{ steps.files.outputs.renamed }}" + echo "Modified:" + echo "${{ steps.files.outputs.modified }}" + echo "Added+Modified:" + echo "${{ steps.files.outputs.added_modified }}"