send notification to discord
This commit is contained in:
parent
8d52962392
commit
7e7be2a740
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -54,6 +54,11 @@ jobs:
|
|||||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||||
with:
|
with:
|
||||||
args: "deploy -c ./fly.dev.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}"
|
args: "deploy -c ./fly.dev.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}"
|
||||||
|
- uses: appleboy/discord-action@master
|
||||||
|
with:
|
||||||
|
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||||
|
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||||
|
args: "https://dev.shellphone.dev deployed with commit `${{ github.sha }}` from branch `${{ github.ref }}`"
|
||||||
|
|
||||||
deploy_prod:
|
deploy_prod:
|
||||||
if: github.ref == 'refs/heads/production'
|
if: github.ref == 'refs/heads/production'
|
||||||
@ -67,4 +72,9 @@ jobs:
|
|||||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||||
with:
|
with:
|
||||||
args: "deploy -c ./fly.prod.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}"
|
args: "deploy -c ./fly.prod.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}"
|
||||||
|
- uses: appleboy/discord-action@master
|
||||||
|
with:
|
||||||
|
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||||
|
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||||
|
args: "https://www.shellphone.dev deployed with commit `${{ github.sha }}` from branch `${{ github.ref }}`"
|
||||||
# TODO: on pull_request, deploy 24hour-long deployment at {commit_short_hash}.shellphone.app, provision db and seed data
|
# TODO: on pull_request, deploy 24hour-long deployment at {commit_short_hash}.shellphone.app, provision db and seed data
|
||||||
|
Loading…
Reference in New Issue
Block a user