Skip to content

Commit

Permalink
other: #189 🔹 notify deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ubugeeei committed Dec 29, 2023
1 parent abe055e commit 71cc75b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy chibivue Book to Pages

on:
push:
branches: [main]
branches: [main, 189-notify-pages-deploy] # TODO: Change this to main

workflow_dispatch:

Expand Down Expand Up @@ -61,3 +61,11 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

notify:
runs-on: ubuntu-latest
# needs: deploy # TODO: Uncomment this
steps:
- name: notify
run: |
curl -H 'Content-Type:application/json' "${{secrets.DISCORD_WEBHOOK_URL}}" -d '{"content": "Deployed Online Book!\n ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}"}'

0 comments on commit 71cc75b

Please sign in to comment.