JackMail/.drone.yml

60 lines
2.1 KiB
YAML

kind: pipeline
type: docker
name: build
steps:
- name: build-win-x64
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- dotnet restore
- dotnet publish -c release -r win-x64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
- name: build-linux-x64
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- dotnet restore
- dotnet publish -c release -r linux-x64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
- name: build-linux-armhf
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- dotnet restore
- dotnet publish -c release -r linux-arm --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
- name: build-linux-arm64
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- dotnet restore
- dotnet publish -c release -r linux-arm64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
- name: build-osx-x64
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- dotnet restore
- dotnet publish -c release -r osx-x64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
- name: collate
image: mcr.microsoft.com/dotnet/sdk:5.0
when:
event:
- tag
commands:
- mkdir -p build
- mv JackMail/bin/Release/net5.0/win-x64/publish/JackMail.exe build/JackMail_win-x64.exe
- mv JackMail/bin/Release/net5.0/linux-x64/publish/JackMail build/JackMail_linux-x64
- mv JackMail/bin/Release/net5.0/linux-arm/publish/JackMail build/JackMail_linux-arm
- mv JackMail/bin/Release/net5.0/linux-arm64/publish/JackMail build/JackMail_linux-arm64
- mv JackMail/bin/Release/net5.0/osx-x64/publish/JackMail build/JackMail_osx-x64
- name: publish
image: plugins/gitea-release
when:
event:
- tag
settings:
base_url: https://git.jacknet.io
api_key:
from_secret: gitea_token
files:
- build/JackMail_*