Skip to content

Commit

Permalink
Add notify-on-discord step to Deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Nov 15, 2023
1 parent 6cc181e commit 0c3ad42
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 0c3ad42

Please sign in to comment.