diff --git a/.drone.yml b/.drone.yml index 69fe883..c5c0fa1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,6 +18,8 @@ steps: - apt-get install dotnet-sdk-5.0 -y - ./build.sh - ./zip-files.sh + when: + event: tag - name: release image: plugins/gitea-release diff --git a/build.sh b/build.sh index 0d5c7aa..6962323 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,9 @@ #!/bin/bash - -dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/linux-x64 -dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/win-x64 -dotnet publish -r osx-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/osx-x64 +rids=( "linux-x64" "linux-musl-x64" "linux-arm" "linux-arm64" "osx-x64" "osx.11.0-arm64" "win-x64" "win-x86" "win-arm" "win-arm64" ) +for rid in "${rids[@]}" +do + echo "Building $rid..." + dotnet publish -r $rid -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o "./builds/$rid" + echo "Finished building $rid." +done +echo "Finishing building all packages"