EllieHub/.woodpecker/build.yaml

34 lines
796 B
YAML

when:
- event: tag
- event: pull_request
variables:
- &dotnet_image 'mcr.microsoft.com/dotnet/sdk:8.0'
# cspell:words bindata netgo
steps:
- name: Build
image: *dotnet_image
run: dotnet build -c Release
- name: Test
image: *dotnet_image
run: dotnet test
- name: Publish
image: *dotnet_image
run: |
cd .\EllieHub\
dotnet publish -c Release -r win-x64 -o "build\EllieHub_win-x64" --self-contained
dotnet publish -c Release -r win-arm64 -o "build\EllieHub_win-arm64" --self-contained
cd ..\
- name: Package
commands:
- apt update
- apt add tar zip
- mkdir zips
- zip zips\EllieHub_win-x64.zip build\EllieHub_win-x64
- zip zips\EllieHub_win-arm64.zip build\EllieHub_win-arm64"