EllieHub/.woodpecker/build.yaml

30 lines
742 B
YAML
Raw Normal View History

2024-07-18 07:15:28 -07:00
when:
- event: tag
- event: pull_request
2024-07-18 07:05:00 -07:00
2024-07-18 07:15:28 -07:00
steps:
- name: Build
2024-07-18 07:33:21 -07:00
image: mcr.microsoft.com/dotnet/sdk:8.0
2024-07-18 07:15:28 -07:00
run: dotnet build -c Release
- name: Test
2024-07-18 07:33:21 -07:00
image: mcr.microsoft.com/dotnet/sdk:8.0
2024-07-18 07:15:28 -07:00
run: dotnet test
- name: Publish
2024-07-18 07:33:21 -07:00
image: mcr.microsoft.com/dotnet/sdk:8.0
2024-07-18 07:15:28 -07:00
run: |
cd .\EllieHub\
2024-07-18 07:39:52 -07:00
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
2024-07-18 07:15:28 -07:00
cd ..\
- name: Package
2024-07-18 07:36:11 -07:00
image: docker.io/ubuntu:24.04
2024-07-18 07:32:07 -07:00
commands:
- apt update
2024-07-18 07:38:02 -07:00
- apt install tar zip
2024-07-18 07:40:55 -07:00
- zip EllieHub_win-x64 EllieHub_win-x64.zip
- zip EllieHub_win-arm64 EllieHub_win-arm64.zip