MoonTools.NETPhysFS/.drone.yml

33 lines
798 B
YAML
Raw Normal View History

2020-02-21 07:03:25 +00:00
kind: pipeline
type: docker
name: default
workspace:
path: /build
steps:
- name: library
2020-02-21 07:12:34 +00:00
image: macjustice/git-lfs:latest
2020-02-21 07:03:25 +00:00
commands:
2020-02-21 07:06:51 +00:00
- git clone https://gitea.moonside.games/MoonsideGames/physfslibs.git
2020-02-21 07:24:32 +00:00
- mv /build/physfslibs/lib64/libphysfs.so.3.0.2 /build/physfslibs/lib64/libphysfs.so
2020-02-21 07:03:25 +00:00
- name: test
image: mcr.microsoft.com/dotnet/core/sdk:3.1
environment:
LD_LIBRARY_PATH: /build/physfslibs/lib64/
commands:
- dotnet build -c Release
- dotnet test -c Release
- name: deploy
image: mcr.microsoft.com/dotnet/core/sdk:3.1
environment:
API_KEY:
from_secret: API_KEY
commands:
- dotnet nuget push /build/NETPhysFS/bin/Release/MoonTools.NETPhysFS.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
when:
ref:
- refs/tags/*.*.*