diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index 145236d..4c4cc87 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -1,8 +1,6 @@ when: - event: tag - event: pull_request - branch: ${CI_REPO_DEFAULT_BRANCH} - path: Makefile variables: - &dotnet_image 'mcr.microsoft.com/dotnet/sdk:8.0' @@ -12,12 +10,15 @@ variables: 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 @@ -25,7 +26,9 @@ steps: cd ..\ - name: Package - run: | - New-Item -ItemType Directory -Path "zips" - Compress-Archive -Path "build\EllieHub_win-x64" -DestinationPath "zips\EllieHub_win-x64.zip" - Compress-Archive -Path "build\EllieHub_win-arm64" -DestinationPath "zips\EllieHub_win-arm64.zip" \ No newline at end of file + 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"