Update .woodpecker/build.yaml
This commit is contained in:
parent
99a03c07c7
commit
e8ae174b2d
1 changed files with 9 additions and 6 deletions
|
@ -1,8 +1,6 @@
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
||||||
path: Makefile
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &dotnet_image 'mcr.microsoft.com/dotnet/sdk:8.0'
|
- &dotnet_image 'mcr.microsoft.com/dotnet/sdk:8.0'
|
||||||
|
@ -12,12 +10,15 @@ variables:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
image: *dotnet_image
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
image: *dotnet_image
|
||||||
run: dotnet test
|
run: dotnet test
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
|
image: *dotnet_image
|
||||||
run: |
|
run: |
|
||||||
cd .\EllieHub\
|
cd .\EllieHub\
|
||||||
dotnet publish -c Release -r win-x64 -o "build\EllieHub_win-x64" --self-contained
|
dotnet publish -c Release -r win-x64 -o "build\EllieHub_win-x64" --self-contained
|
||||||
|
@ -25,7 +26,9 @@ steps:
|
||||||
cd ..\
|
cd ..\
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
commands:
|
||||||
New-Item -ItemType Directory -Path "zips"
|
- apt update
|
||||||
Compress-Archive -Path "build\EllieHub_win-x64" -DestinationPath "zips\EllieHub_win-x64.zip"
|
- apt add tar zip
|
||||||
Compress-Archive -Path "build\EllieHub_win-arm64" -DestinationPath "zips\EllieHub_win-arm64.zip"
|
- mkdir zips
|
||||||
|
- zip zips\EllieHub_win-x64.zip build\EllieHub_win-x64
|
||||||
|
- zip zips\EllieHub_win-arm64.zip build\EllieHub_win-arm64"
|
||||||
|
|
Loading…
Reference in a new issue