File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 40
40
path : ${{env.DOTNET_ROOT}}\pub
41
41
42
42
deploy :
43
+ if : github.ref == 'refs/heads/main'
43
44
runs-on : self-hosted
44
45
needs : build
45
46
steps :
@@ -57,10 +58,15 @@ jobs:
57
58
58
59
- name : deploy iis site
59
60
run : |
61
+ stop-webapppool -name "rubberduckvba-prod"
60
62
stop-webapppool -name "api-prod"
61
63
stop-iissite -name api-prod -confirm: $false
64
+ stop-iissite -name rubberduckvba-prod -confirm: $false
62
65
copy-item C:/pub/webroot/rubberduckvba.com/* C:/inetpub/wwwroot/rubberduckvba.com -Recurse -Force
63
66
copy-item C:/inetpub/appsettings.prod.json C:/inetpub/wwwroot/rubberduckvba.com/appsettings.json -Force
64
67
copy-item C:/inetpub/__Web.config C:/inetpub/wwwroot/rubberduckvba.com/wwwroot/browser/Web.config -Force
65
68
start-webapppool api-prod
66
69
start-iissite api-prod
70
+ start-webapppool rubberduckvba-prod
71
+ start-iissite rubberduckvba-prod
72
+
Original file line number Diff line number Diff line change @@ -59,10 +59,14 @@ jobs:
59
59
60
60
- name : deploy iis site
61
61
run : |
62
+ stop-webapppool -name "DefaultAppPool"
62
63
stop-webapppool -name "rubberduckvba"
63
64
stop-iissite -name api -confirm: $false
65
+ stop-iissite -name rubberduckvba -confirm: $false
64
66
copy-item C:/pub/webroot/test.rubberduckvba.com/* C:/inetpub/wwwroot/test.rubberduckvba.com -Recurse -Force
65
67
copy-item C:/inetpub/appsettings.test.json C:/inetpub/wwwroot/test.rubberduckvba.com/appsettings.json -Force
66
68
copy-item C:/inetpub/__Web.config C:/inetpub/wwwroot/test.rubberduckvba.com/wwwroot/browser/Web.config -Force
67
69
start-webapppool rubberduckvba
68
70
start-iissite api
71
+ start-webapppool DefaultAppPool
72
+ start-iissite rubberduckvba
You can’t perform that action at this time.
0 commit comments