|
@@ -42,11 +42,11 @@ jobs:
|
|
|
# https://github.com/actions/deploy-pages?tab=readme-ov-file#usage
|
|
|
deploy:
|
|
|
name: Deploy
|
|
|
+ runs-on: ubuntu-latest
|
|
|
needs: build
|
|
|
permissions:
|
|
|
pages: write
|
|
|
id-token: write
|
|
|
- runs-on: ubuntu-latest
|
|
|
steps:
|
|
|
- name: Deploy to GitHub Pages
|
|
|
id: deployment
|
|
@@ -54,13 +54,16 @@ jobs:
|
|
|
|
|
|
notify:
|
|
|
name: Send Discord workflow notification
|
|
|
- uses: annybs/action-notify-discord@v1
|
|
|
+ runs-on: ubuntu-latest
|
|
|
needs: deploy
|
|
|
- if: ${{ always() }}
|
|
|
- with:
|
|
|
- repository: ${{ github.repository }}
|
|
|
- result: ${{ needs.deploy.result }}
|
|
|
- run-id: ${{ github.run_id }}
|
|
|
- run-number: ${{ github.run_number }}
|
|
|
- webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
- workflow: ${{ github.workflow }}
|
|
|
+ steps:
|
|
|
+ - name: Send notification
|
|
|
+ uses: annybs/action-notify-discord@v1
|
|
|
+ if: ${{ always() }}
|
|
|
+ with:
|
|
|
+ repository: ${{ github.repository }}
|
|
|
+ result: ${{ needs.deploy.result }}
|
|
|
+ run-id: ${{ github.run_id }}
|
|
|
+ run-number: ${{ github.run_number }}
|
|
|
+ webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
+ workflow: ${{ github.workflow }}
|