35 lines
846 B
YAML
35 lines
846 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
workspace:
|
|
path: /build
|
|
|
|
steps:
|
|
- name: library
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
commands:
|
|
- git clone https://gitea.moonside.games/MoonsideGames/physfslibs.git
|
|
- git lfs fetch
|
|
- git lfs pull
|
|
- mv /build/physfslibs/lib64/libphysfs.3.0.2 /build/physfslibs/lib64/libphysfs.so
|
|
|
|
- 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/*.*.*
|