-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathaction.yml
43 lines (43 loc) · 1.46 KB
/
action.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
38
39
40
41
42
43
# action.yml
name: "Azure Static Website Deploy"
description: "Deploys code to Azure Storage and enables Static Website"
branding:
icon: "box"
color: "green"
inputs:
SOURCE_DIR:
description: "The name of the directory you want to upload"
required: true
AZURE_CLIENT_ID:
description: "Your Azure Client ID"
required: true
AZURE_TENANT_ID:
description: "Your Azure TENANT ID"
required: true
AZURE_SECRET:
description: "Your Azure Secret"
required: true
AZURE_SUBSCRIPTION_ID:
description: "Your Azure Subscription ID"
required: true
AZURE_STORAGE_ACCOUNT_NAME:
description: "Your Azure Storage Account Name"
required: true
AZURE_INDEX_DOCUMENT_NAME:
description: "The index document that you specify when you enable static website hosting, appears when users open the site and dont specify a specific file."
required: true
AZURE_ERROR_DOCUMENT_NAME:
description: "If the server returns a 404 error, and you have not specified an error document when you enabled the website, then a default 404 page is returned to the user."
required: false
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.SOURCE_DIR }}
- ${{ inputs.AZURE_CLIENT_ID }}
- ${{ inputs.AZURE_TENANT_ID }}
- ${{ inputs.AZURE_SECRET }}
- ${{ inputs.AZURE_SUBSCRIPTION_ID }}
- ${{ inputs.AZURE_STORAGE_ACCOUNT_NAME }}
- ${{ inputs.AZURE_INDEX_DOCUMENT_NAME }}
- ${{ inputs.AZURE_ERROR_DOCUMENT_NAME }}