|
1 | 1 | =============================================================================== |
2 | 2 | PROJECT EXPORT |
3 | | -Generated: Fri Jan 30 05:04:49 PM EST 2026 |
| 3 | +Generated: Fri Jan 30 05:19:37 PM EST 2026 |
4 | 4 | Project Path: /home/kushal/src/dotnet/MyBlog |
5 | 5 | =============================================================================== |
6 | 6 |
|
@@ -73,7 +73,9 @@ DIRECTORY STRUCTURE: |
73 | 73 | │ │ ├── instructions.md |
74 | 74 | │ │ ├── kush.runasp.net-WebDeploy.publishSettings |
75 | 75 | │ │ ├── memory.md |
76 | | -│ │ └── playwright.md |
| 76 | +│ │ ├── nice.runasp.net-WebDeploy.publishSettings |
| 77 | +│ │ ├── playwright.md |
| 78 | +│ │ └── secret.log |
77 | 79 | │ └── E2E-TESTING.md |
78 | 80 | ├── .github |
79 | 81 | │ └── workflows |
@@ -667,8 +669,8 @@ echo "" |
667 | 669 |
|
668 | 670 | ================================================================================ |
669 | 671 | FILE: .github/workflows/build-deploy.yml |
670 | | -SIZE: 5.11 KB |
671 | | -MODIFIED: 2026-01-27 13:29:41 |
| 672 | +SIZE: 7.14 KB |
| 673 | +MODIFIED: 2026-01-30 17:16:39 |
672 | 674 | ================================================================================ |
673 | 675 |
|
674 | 676 | name: Build, Test, and Deploy |
@@ -838,6 +840,59 @@ jobs: |
838 | 840 |
|
839 | 841 | Write-Host "Deployment completed successfully!" |
840 | 842 |
|
| 843 | + deploynice: |
| 844 | + needs: [build-test, e2e-tests] |
| 845 | + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' |
| 846 | + runs-on: windows-latest |
| 847 | + |
| 848 | + steps: |
| 849 | + - name: Checkout repository |
| 850 | + uses: actions/checkout@v4 |
| 851 | + |
| 852 | + - name: Setup .NET 10 |
| 853 | + uses: actions/setup-dotnet@v4 |
| 854 | + with: |
| 855 | + dotnet-version: '10.0.x' |
| 856 | + |
| 857 | + - name: Publish application |
| 858 | + run: dotnet publish src/MyBlog.Web/MyBlog.Web.csproj -c Release -o ./publish -r win-x86 --self-contained false |
| 859 | + |
| 860 | + - name: Deploy via WebDeploy |
| 861 | + shell: pwsh |
| 862 | + env: |
| 863 | + DEPLOY_SOURCE: ${{ github.workspace }}\publish |
| 864 | + DEPLOY_SITE: ${{ secrets.NICE_WEBSITE_NAME }} |
| 865 | + DEPLOY_HOST: ${{ secrets.NICE_SERVER_COMPUTER_NAME }} |
| 866 | + DEPLOY_USER: ${{ secrets.NICE_SERVER_USERNAME }} |
| 867 | + DEPLOY_PASSWORD: ${{ secrets.NICE_SERVER_PASSWORD }} |
| 868 | + run: | |
| 869 | + $msdeployPath = "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" |
| 870 | + |
| 871 | + if (-not (Test-Path $msdeployPath)) { |
| 872 | + Write-Host "Installing Web Deploy..." |
| 873 | + choco install webdeploy -y --no-progress |
| 874 | + } |
| 875 | + |
| 876 | + Write-Host "Deploying to $env:DEPLOY_HOST..." |
| 877 | + Write-Host "Note: Using AppOffline rule to prevent file-in-use errors" |
| 878 | + |
| 879 | + $sourceArg = "-source:contentPath=$env:DEPLOY_SOURCE" |
| 880 | + $destArg = "-dest:contentPath=$env:DEPLOY_SITE,computerName=https://$($env:DEPLOY_HOST):8172/MsDeploy.axd?site=$env:DEPLOY_SITE,userName=$env:DEPLOY_USER,password=$env:DEPLOY_PASSWORD,AuthType='Basic'" |
| 881 | + |
| 882 | + & $msdeployPath -verb:sync $sourceArg $destArg ` |
| 883 | + -allowUntrusted ` |
| 884 | + -enableRule:DoNotDeleteRule ` |
| 885 | + -enableRule:AppOffline ` |
| 886 | + -retryAttempts:3 ` |
| 887 | + -retryInterval:3000 |
| 888 | + |
| 889 | + if ($LASTEXITCODE -ne 0) { |
| 890 | + Write-Error "Deployment failed with exit code $LASTEXITCODE" |
| 891 | + exit 1 |
| 892 | + } |
| 893 | + |
| 894 | + Write-Host "Deployment completed successfully!" |
| 895 | + |
841 | 896 |
|
842 | 897 | ================================================================================ |
843 | 898 | FILE: .gitignore |
@@ -16573,7 +16628,7 @@ window.themeManager = { |
16573 | 16628 |
|
16574 | 16629 |
|
16575 | 16630 | =============================================================================== |
16576 | | -EXPORT COMPLETED: Fri Jan 30 05:04:50 PM EST 2026 |
| 16631 | +EXPORT COMPLETED: Fri Jan 30 05:19:38 PM EST 2026 |
16577 | 16632 | Total Files Found: 126 |
16578 | 16633 | Files Exported: 126 |
16579 | 16634 | Files Skipped: 0 (binary or large files) |
|
0 commit comments