lucidiot/HabitSharp
lucidiot
/
HabitSharp
Archived
1
0
Fork 0
This repository has been archived on 2022-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
HabitSharp/Makefile

28 lines
600 B
Makefile

NUGET_SOURCE:=Brainshit
run:
dotnet run
all:
dotnet build
clean:
rm -rf bin
find . -type f -name '*.nupkg' -not -path '*/.git/*' -delete
tests:
dotnet test
restore:
dotnet restore
push-latest: VERSION_SUFFIX=latest
push-latest: push
push: clean require-api-key
dotnet pack --version-suffix "$(VERSION_SUFFIX)"
find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 -I '{}' dotnet nuget push {} -k "$(NUGET_API_KEY)" -s "$(NUGET_SOURCE)"
require-api-key:
[ -z "$(NUGET_API_KEY)" ] && echo "The NUGET_API_KEY variable is required to push to a NuGet server" && exit 1 || true