File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -43,22 +43,23 @@ jobs:
43
43
runs-on : self-hosted
44
44
needs : build
45
45
steps :
46
+ - name : prepare staging
47
+ run : remove-item C:/pub/webroot/rubberduckvba.com -Recurse -Force
48
+
46
49
- name : download artifacts
47
50
uses : actions/download-artifact@v4.1.8
48
51
with :
49
52
name : pub
50
- path : C:/pub/pub.zip
53
+ path : C:/pub/pub-prod .zip
51
54
52
- - name : unzip artifacts
53
- run : |
54
- remove-item C:/pub/webroot/* -Recurse -Force
55
- expand-archive C:/pub/pub.zip -DestinationPath C:/pub/webroot
55
+ - name : staging
56
+ run : move-item C:/pub/pub-prod.zip C:/pub/webroot/rubberduckvba.com/* -force
56
57
57
58
- name : deploy iis site
58
59
run : |
59
60
stop-webapppool -name "api-prod"
60
61
stop-iissite -name api-prod -confirm: $false
61
- copy-item C:/pub/webroot/* C:/inetpub/wwwroot/rubberduckvba.com -Recurse -Force
62
+ copy-item C:/pub/webroot/rubberduckvba.com/ * C:/inetpub/wwwroot/rubberduckvba.com -Recurse -Force
62
63
copy-item C:/inetpub/appsettings.prod.json C:/inetpub/wwwroot/rubberduckvba.com/appsettings.json -Force
63
64
copy-item C:/inetpub/__Web.config C:/inetpub/wwwroot/rubberduckvba.com/wwwroot/browser/Web.config -Force
64
65
start-webapppool api-prod
Original file line number Diff line number Diff line change @@ -45,22 +45,23 @@ jobs:
45
45
runs-on : self-hosted
46
46
needs : build
47
47
steps :
48
+ - name : clear staging
49
+ run : remove-item C:/pub/webroot/test.rubberduckvba.com -Recurse -Force
50
+
48
51
- name : download artifacts
49
52
uses : actions/download-artifact@v4.1.8
50
53
with :
51
54
name : pub
52
- path : C:/pub/pub.zip
55
+ path : C:/pub/pub-test .zip
53
56
54
- - name : unzip artifacts
55
- run : |
56
- remove-item C:/pub/webroot/* -Recurse -Force
57
- expand-archive C:/pub/pub.zip -DestinationPath C:/pub/webroot
57
+ - name : staging
58
+ run : move-item C:/pub/pub-test.zip C:/pub/webroot/test.rubberduckvba.com/* -force
58
59
59
60
- name : deploy iis site
60
61
run : |
61
62
stop-webapppool -name "rubberduckvba"
62
63
stop-iissite -name api -confirm: $false
63
- copy-item C:/pub/webroot/* C:/inetpub/wwwroot/test.rubberduckvba.com -Recurse -Force
64
+ copy-item C:/pub/webroot/test.rubberduckvba.com/ * C:/inetpub/wwwroot/test.rubberduckvba.com -Recurse -Force
64
65
copy-item C:/inetpub/appsettings.test.json C:/inetpub/wwwroot/test.rubberduckvba.com/appsettings.json -Force
65
66
copy-item C:/inetpub/__Web.config C:/inetpub/wwwroot/test.rubberduckvba.com/wwwroot/browser/Web.config -Force
66
67
start-webapppool rubberduckvba
You can’t perform that action at this time.
0 commit comments