forked from microsoft/fast
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 977 Bytes
/
cd-deploy-cdn.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
name: Deploy CDN
on:
push:
branches:
- master
jobs:
deploy_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@master
- name: Upload static assets to CDN
uses: lauchacarro/Azure-Storage-Action@master
with:
folder: 'sites/site-utilities/statics/assets'
connection-string: ${{ secrets.AZURE_CONNECTION_STRING_STORAGE }}
public-access-policy: Blob
blob-container-name: 'assets'
notify:
runs-on: ubuntu-latest
needs: deploy_linux
steps:
- name: Notify on Discord
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_NOTIFICATION_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_NOTIFICATION_WEBHOOK_TOKEN }}
color: '#DE2D6D'
username: 'FAST DevOps CDN Bot'
message: 'Deployment has completed to CDN on https://github.com/microsoft/fast/actions/workflows/cd-deploy-cdn.yml'