-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (36 loc) · 1.13 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy docs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v2
- uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV }}
notimestamp: true
nodetail: true
title: "Started: ${{ github.workflow}} - ${{ github.ref_name }}"
description: Triggered by ${{ github.actor }}
color: 0x50545b
- name: Wait for Cloudflare Pages build
uses: WalshyDev/cf-pages-await@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN_PAGES }}
accountId: "4955c8c28610ecabc384d84a20458a53"
project: "docs"
# write deplpyment status to github
githubToken: ${{ secrets.PRIVATE_ACCESS_TOKEN_DEPLOYMENTS }}
- name: Send Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV }}
title: ${{ github.workflow}} - ${{ github.ref_name }}
notimestamp: true