feat(ci): Add Gitea CI for public preview packages

This commit is contained in:
Sam Therapy 2023-05-15 18:15:28 +02:00
parent d303c9a7a8
commit 4b17960610
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

25
.drone.yml Normal file
View file

@ -0,0 +1,25 @@
kind: pipeline
type: docker
name: Public Preview Builds
trigger:
branch:
- master
event:
- push
steps:
- name: Build for Release
image: mcr.microsoft.com/dotnet/sdk:7.0
commands:
- dotnet build -c Release -p:SymbolPackageFormat=symbols.nupkg -p:ContinuousIntegrationBuild=true
- dotnet build -c Release -p:ContinuousIntegrationBuild=true
- name: Publish
image: mcr.microsoft.com/dotnet/sdk:7.0
environment:
API_KEY:
from_secret: API_KEY
NUGET_REPO: https://git.froth.zone/api/packages/sam/nuget/index.json
commands:
- cd src/Xdg.Directories
- dotnet nuget push bin/Release/\*.symbols.nupkg --api-key $API_KEY --source $NUGET_REPO
- dotnet nuget push bin/Release/\*.snupkg --api-key $API_KEY --source $NUGET_REPO