[CLAUDE] CICD: use powershell (5.1) instead of pwsh (7) - not installed on VPS
Some checks are pending
Deploy SOLUTION_ERP / build-deploy (push) Waiting to run
Some checks are pending
Deploy SOLUTION_ERP / build-deploy (push) Waiting to run
This commit is contained in:
@ -23,20 +23,20 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Add dotnet + node to PATH
|
- name: Add dotnet + node to PATH
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
echo "C:\Program Files\dotnet" >> $env:GITHUB_PATH
|
echo "C:\Program Files\dotnet" >> $env:GITHUB_PATH
|
||||||
echo "C:\Program Files\nodejs" >> $env:GITHUB_PATH
|
echo "C:\Program Files\nodejs" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
- name: Show tool versions
|
- name: Show tool versions
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
& 'C:\Program Files\dotnet\dotnet.exe' --version
|
& 'C:\Program Files\dotnet\dotnet.exe' --version
|
||||||
& 'C:\Program Files\nodejs\node.exe' --version
|
& 'C:\Program Files\nodejs\node.exe' --version
|
||||||
& 'C:\Program Files\nodejs\npm.cmd' --version
|
& 'C:\Program Files\nodejs\npm.cmd' --version
|
||||||
|
|
||||||
- name: Build backend
|
- name: Build backend
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
& 'C:\Program Files\dotnet\dotnet.exe' restore SolutionErp.slnx
|
& 'C:\Program Files\dotnet\dotnet.exe' restore SolutionErp.slnx
|
||||||
& 'C:\Program Files\dotnet\dotnet.exe' publish src/Backend/SolutionErp.Api/SolutionErp.Api.csproj `
|
& 'C:\Program Files\dotnet\dotnet.exe' publish src/Backend/SolutionErp.Api/SolutionErp.Api.csproj `
|
||||||
@ -46,14 +46,14 @@ jobs:
|
|||||||
--self-contained false
|
--self-contained false
|
||||||
|
|
||||||
- name: Build fe-admin
|
- name: Build fe-admin
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
working-directory: fe-admin
|
working-directory: fe-admin
|
||||||
run: |
|
run: |
|
||||||
& 'C:\Program Files\nodejs\npm.cmd' ci
|
& 'C:\Program Files\nodejs\npm.cmd' ci
|
||||||
& 'C:\Program Files\nodejs\npm.cmd' run build
|
& 'C:\Program Files\nodejs\npm.cmd' run build
|
||||||
|
|
||||||
- name: Build fe-user
|
- name: Build fe-user
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
working-directory: fe-user
|
working-directory: fe-user
|
||||||
run: |
|
run: |
|
||||||
& 'C:\Program Files\nodejs\npm.cmd' ci
|
& 'C:\Program Files\nodejs\npm.cmd' ci
|
||||||
@ -61,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to IIS (local)
|
- name: Deploy to IIS (local)
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
JWT_SECRET: ${{ secrets.JWT_SECRET }}
|
JWT_SECRET: ${{ secrets.JWT_SECRET }}
|
||||||
DB_CONNECTION: ${{ secrets.DB_CONNECTION }}
|
DB_CONNECTION: ${{ secrets.DB_CONNECTION }}
|
||||||
@ -110,7 +110,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Smoke test
|
- name: Smoke test
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Start-Sleep -Seconds 10
|
Start-Sleep -Seconds 10
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user