-
Notifications
You must be signed in to change notification settings - Fork 11
/
action.yml
67 lines (67 loc) · 2 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
63
64
65
66
67
name: "Simply Web Deploy"
description: "Deploy projects directly to Simply IIS"
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: '\publish\'
target-path:
description: "The target directory for payload"
required: false
default: '""'
target-delete:
description: "Delete files on the destination computer that do not exist on the source computer"
required: false
default: "false"
skip-directory-path:
description: "Target a directory that any actions will be skipped on"
required: false
default: '""'
runs:
using: "composite"
steps:
- name: Stop Application Pool
shell: pwsh
run: >
${{ github.action_path }}/Scripts/Set-ApplicationPool.ps1
StopAppPool
${{ inputs.website-name }}
${{ inputs.server-computer-name }}
${{ inputs.server-username }}
${{ inputs.server-password }}
- name: Deploy Application
shell: pwsh
run: >
${{ github.action_path }}/Scripts/Deploy-ApplicationPackage.ps1
${{ inputs.source-path }}
${{ inputs.target-path }}
${{ inputs.website-name }}
${{ inputs.server-computer-name }}
${{ inputs.server-username }}
${{ inputs.server-password }}
${{ inputs.target-delete }}
${{ inputs.skip-directory-path }}
- name: Start Application Pool
shell: pwsh
run: >
${{ github.action_path }}/Scripts/Set-ApplicationPool.ps1
StartAppPool
${{ inputs.website-name }}
${{ inputs.server-computer-name }}
${{ inputs.server-username }}
${{ inputs.server-password }}
branding:
icon: "upload-cloud"
color: "purple"