EllieHub/.woodpecker/build.yaml
toastie_t0ast d30a0bdf33
Some checks failed
ci/woodpecker/pr/build Pipeline failed
Update .woodpecker/build.yaml
2024-07-18 07:39:52 -07:00

29 lines
743 B
YAML

when:
- event: tag
- event: pull_request
steps:
- name: Build
image: mcr.microsoft.com/dotnet/sdk:8.0
run: dotnet build -c Release
- name: Test
image: mcr.microsoft.com/dotnet/sdk:8.0
run: dotnet test
- name: Publish
image: mcr.microsoft.com/dotnet/sdk:8.0
run: |
cd .\EllieHub\
dotnet publish -c Release -r win-x64 -o "EllieHub_win-x64" --self-contained
dotnet publish -c Release -r win-arm64 -o "EllieHub_win-arm64" --self-contained
cd ..\
- name: Package
image: docker.io/ubuntu:24.04
commands:
- apt update
- apt install tar zip
- zip EllieHub_win-x64.zip EllieHub_win-x64
- zip EllieHub_win-arm64.zip EllieHub_win-arm64"