forked from Azure/azure-kusto-trender
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (54 loc) · 1.83 KB
/
build.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and deploy on prod
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
actions: read
contents: read
deployments: read
security-events: write
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- run: |
git config user.name github-actions
git config user.email [email protected]
- run: npm ci --legacy-peer-deps
- run: npm run build
- run: npm run prepare-samples
- run: npm run post-build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./dist/package.json"
- run: git push
- name: Azure Static Website Deploy
uses: feeloor/azure-static-website-deploy@master
env:
# The name of the directory you want to upload
SOURCE_DIR: "./pages/examples"
# Your Azure Client ID -> create sp with id and secret -> add the sp as contributor to the storage
AZURE_CLIENT_ID: "${{secrets.CLIENT_ID}}"
# Your Azure TENANT ID
AZURE_TENANT_ID: "72f988bf-86f1-41af-91ab-2d7cd011db47"
# Your Azure Secret
AZURE_SECRET: "${{secrets.SECRET_ID}}"
# Your Azure Subscription ID
AZURE_SUBSCRIPTION_ID: "${{secrets.SUBSCRIPTION_ID}}"
# Your Azure Storage Account Name
AZURE_STORAGE_ACCOUNT_NAME: "kustotrenderclone"
# The index document that you specify when you enable static website hosting, appears when users open the site and dont specify a specific file.
AZURE_INDEX_DOCUMENT_NAME: "index.html"
FORCE_OVERWRITE: "true"