Skip to content

Commit 6443c2f

Browse files
Merge pull request #814 from microsoft/dev-v4
chore: Dev v4 to main
2 parents 38194fb + 55c24cd commit 6443c2f

2 files changed

Lines changed: 66 additions & 26 deletions

File tree

azure.yaml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,40 @@ hooks:
88
postdeploy:
99
windows:
1010
run: |
11-
Write-Host ""
12-
Write-Host "===============================================================" -ForegroundColor Yellow
13-
Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
14-
Write-Host "===============================================================" -ForegroundColor Yellow
15-
Write-Host ""
16-
17-
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
18-
Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
19-
Write-Host " infra\scripts\Selecting-Team-Config-And-Data.ps1" -ForegroundColor Cyan
20-
Write-Host ""
21-
22-
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
23-
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
24-
Write-Host ""
11+
# Detect if running in Git Bash or similar Bash environment
12+
if ($env:SHELL -like "*bash*" -or $env:MSYSTEM) {
13+
# Running in Git Bash/MSYS2 environment
14+
Write-Host ""
15+
Write-Host "===============================================================" -ForegroundColor Yellow
16+
Write-Host " POST-DEPLOYMENT STEPS (Bash)" -ForegroundColor Green
17+
Write-Host "===============================================================" -ForegroundColor Yellow
18+
Write-Host ""
19+
20+
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
21+
Write-Host " 👉 Run the following command in Bash:" -ForegroundColor White
22+
Write-Host " bash infra/scripts/selecting_team_config_and_data.sh" -ForegroundColor Cyan
23+
Write-Host ""
24+
25+
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
26+
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
27+
Write-Host ""
28+
} else {
29+
# Running in PowerShell
30+
Write-Host ""
31+
Write-Host "===============================================================" -ForegroundColor Yellow
32+
Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
33+
Write-Host "===============================================================" -ForegroundColor Yellow
34+
Write-Host ""
35+
36+
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
37+
Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
38+
Write-Host " infra\scripts\Selecting-Team-Config-And-Data.ps1" -ForegroundColor Cyan
39+
Write-Host ""
40+
41+
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
42+
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
43+
Write-Host ""
44+
}
2545
2646
shell: pwsh
2747
interactive: true

azure_custom.yaml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,40 @@ hooks:
4747
postdeploy:
4848
windows:
4949
run: |
50-
Write-Host ""
51-
Write-Host "===============================================================" -ForegroundColor Yellow
52-
Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
53-
Write-Host "===============================================================" -ForegroundColor Yellow
54-
Write-Host ""
50+
# Detect if running in Git Bash or similar Bash environment
51+
if ($env:SHELL -like "*bash*" -or $env:MSYSTEM) {
52+
# Running in Git Bash/MSYS2 environment
53+
Write-Host ""
54+
Write-Host "===============================================================" -ForegroundColor Yellow
55+
Write-Host " POST-DEPLOYMENT STEPS (Bash)" -ForegroundColor Green
56+
Write-Host "===============================================================" -ForegroundColor Yellow
57+
Write-Host ""
5558
56-
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
57-
Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
58-
Write-Host " infra\scripts\Selecting-Team-Config-And-Data.ps1" -ForegroundColor Cyan
59-
Write-Host ""
59+
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
60+
Write-Host " 👉 Run the following command in Bash:" -ForegroundColor White
61+
Write-Host " bash infra/scripts/selecting_team_config_and_data.sh" -ForegroundColor Cyan
62+
Write-Host ""
6063
61-
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
62-
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
63-
Write-Host ""
64+
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
65+
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
66+
Write-Host ""
67+
} else {
68+
# Running in PowerShell
69+
Write-Host ""
70+
Write-Host "===============================================================" -ForegroundColor Yellow
71+
Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
72+
Write-Host "===============================================================" -ForegroundColor Yellow
73+
Write-Host ""
74+
75+
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
76+
Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
77+
Write-Host " infra\scripts\Selecting-Team-Config-And-Data.ps1" -ForegroundColor Cyan
78+
Write-Host ""
79+
80+
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
81+
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
82+
Write-Host ""
83+
}
6484
6585
shell: pwsh
6686
interactive: true

0 commit comments

Comments
 (0)