-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 905 Bytes
/
main.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
name: Deployment CLI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Azure login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Push to storage
uses: azure/CLI@v1
with:
azcliversion: 2.0.72
inlinescript: |
az storage blob sync -c '$web' -s . --account-name wildmedocs https://wildmedocs.z5.web.core.windows.net/
# az storage blob upload-batch --account-name wildmedocs -d '$web' -s .
- name: Purge cache
uses: azure/CLI@v1
with:
azcliversion: 2.0.72
inlinescript: |
az cdn endpoint purge --content-paths "/*" --profile-name "react-cdn" --name "wildmereact" --resource-group "react"
- name: Logout
run: |
az logout