-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
62 lines (62 loc) · 1.99 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "UmbHost Web Deploy"
description: "Deploy projects directly to UmbHost"
inputs:
website-name:
description: "IIS website name"
required: true
server-computer-name:
description: "IIS server computer name"
required: true
server-username:
description: "IIS server username"
required: true
server-password:
description: "IIS server password"
required: true
source-path:
description: "The source directory for payload"
required: false
default: '_build'
source-paramFile:
description: "The location of the SetParameters.xml file"
required: true
default: '""'
source-fileName:
description: "The name of the file to be deployed"
required: true
default: 'Umbraco.Web.zip'
runs:
using: "composite"
steps:
- name: Stop Application Pool
shell: pwsh
run: >
${{ github.action_path }}/Scripts/Set-ApplicationPool.ps1
-recycleMode StopAppPool
-recycleApp ${{ inputs.website-name }}
-computerName ${{ inputs.server-computer-name }}
-username ${{ inputs.server-username }}
-password "${{ inputs.server-password }}"
- name: Deploy Application
shell: pwsh
run: >
${{ github.action_path }}/Scripts/Deploy-ApplicationPackage.ps1
-source ${{ inputs.source-path }}
-recycleApp ${{ inputs.website-name }}
-computerName ${{ inputs.server-computer-name }}
-username ${{ inputs.server-username }}
-password "${{ inputs.server-password }}"
-paramFile ${{ inputs.source-paramFile }}
-fileName ${{ inputs.source-fileName }}
- name: Start Application Pool
shell: pwsh
run: >
${{ github.action_path }}/Scripts/Set-ApplicationPool.ps1
-recycleMode StartAppPool
-recycleApp ${{ inputs.website-name }}
-computerName ${{ inputs.server-computer-name }}
-username ${{ inputs.server-username }}
-password "${{ inputs.server-password }}"
branding:
icon: 'server'
color: 'blue'