Update build.yml

This commit is contained in:
2024-10-16 20:40:54 +02:00
committed by GitHub
parent 9d85674d29
commit ac4ddf47ba

View File

@@ -45,27 +45,44 @@ jobs:
cd ./tools cd ./tools
ng build --configuration production --output-path=dist ng build --configuration production --output-path=dist
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: dotnet-artifacts
path: ./output/dotnet
- name: Upload Angular Artifacts
uses: actions/upload-artifact@v2
with:
name: angular-artifacts
path: ./tools/dist
deploy: deploy:
runs-on: self-hosted # Ensure your self-hosted runner is configured runs-on: self-hosted # Ensure your self-hosted runner is configured
needs: build needs: build
steps: steps:
- name: Checkout Repository - name: Download .NET Artifacts
uses: actions/checkout@v2 uses: actions/download-artifact@v2
with:
name: dotnet-artifacts
path: ./output/dotnet
- name: Download Angular Artifacts
uses: actions/download-artifact@v2
with:
name: angular-artifacts
path: ./tools/dist
- name: Wait for 300 seconds
run: |
echo "Waiting for 300 seconds..."
sleep 300
- name: Check Output Files - name: Check Output Files
run: | run: |
dir ./output/dotnet dir ./output/dotnet
dir bytefy\bytefy\tools\dist dir ./tools/dist
- name: Copy .NET Publish Files to IIS Server - name: Copy .NET Publish Files to IIS Server
run: | run: |
xcopy ".\output\dotnet\*" "C:\inetpub\applications\bytefy.image" /s /i /y xcopy ".\output\dotnet\*" "C:\inetpub\applications\bytefy.image" /s /i /y
xcopy ".\bytefy\dist\*" "C:\inetpub\wwwroot\bytefy" /s /i /y xcopy ".\tools\dist\*" "C:\inetpub\wwwroot\bytefy" /s /i /y
- name: Restart IIS - name: Restart IIS
run: | run: |