Xdg.Directories/.drone.yml
Sam Therapy ff4dad335f
Some checks failed
continuous-integration/drone/push Build is failing
Bump more to .NET 8
2024-01-31 16:49:19 +01:00

30 lines
835 B
YAML

kind: pipeline
type: docker
name: Public Preview Builds
trigger:
branch:
- master
event:
- push
- tag
steps:
- name: Fetch Tags
image: alpine/git
commands:
- git fetch --tags
- name: Build for Release
image: mcr.microsoft.com/dotnet/sdk:8.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:8.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