Update .woodpecker/build.yaml
This commit is contained in:
parent
88d214b8a2
commit
99a03c07c7
1 changed files with 30 additions and 21 deletions
|
@ -1,22 +1,31 @@
|
|||
pipeline:
|
||||
run-one:
|
||||
image: busybox
|
||||
group: first
|
||||
commands:
|
||||
- echo "first run"
|
||||
|
||||
run-two:
|
||||
image: busybox
|
||||
group: first
|
||||
commands:
|
||||
- echo "second run"
|
||||
|
||||
run-three:
|
||||
image: ubuntu
|
||||
commands:
|
||||
- echo hi
|
||||
|
||||
when:
|
||||
branch:
|
||||
include: [ main, release/* ]
|
||||
exclude: [ test/1.0.0, test/1.1.* ]
|
||||
- event: tag
|
||||
- event: pull_request
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
path: Makefile
|
||||
|
||||
variables:
|
||||
- &dotnet_image 'mcr.microsoft.com/dotnet/sdk:8.0'
|
||||
|
||||
# cspell:words bindata netgo
|
||||
|
||||
steps:
|
||||
|
||||
- name: Build
|
||||
run: dotnet build -c Release
|
||||
|
||||
- name: Test
|
||||
run: dotnet test
|
||||
|
||||
- name: Publish
|
||||
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
|
||||
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"
|
Loading…
Reference in a new issue