mirror of
https://github.com/Polaris-Entertainment/bytefy.git
synced 2026-07-07 16:15:09 +00:00
Update build.yml
This commit is contained in:
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user