ci: updating to not create 1.0.0 packages
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
This commit is contained in:
parent
189273692c
commit
bca501d4e5
2 changed files with 5 additions and 10 deletions
|
@ -10,20 +10,14 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- nix develop --command scripts/build.sh
|
- nix develop --command scripts/build.sh
|
||||||
when:
|
when:
|
||||||
event: [push, pull_request, tag]
|
event: [push, pull_request, manual]
|
||||||
tag: v*
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||||
commands:
|
commands:
|
||||||
- nix develop --command scripts/test.sh
|
- nix develop --command scripts/test.sh
|
||||||
when:
|
when:
|
||||||
event: [push, pull_request]
|
event: [push, pull_request, manual]
|
||||||
#paths:
|
|
||||||
# - ./**/*test-result.xml
|
|
||||||
# - ./coverage/Cobertura.xml
|
|
||||||
# - ./coverage/Summary.*
|
|
||||||
# - ./**/*.nupkg
|
|
||||||
|
|
||||||
release-main:
|
release-main:
|
||||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||||
|
|
|
@ -13,6 +13,7 @@ fi
|
||||||
# Clean up everything from the previous runs.
|
# Clean up everything from the previous runs.
|
||||||
echo "$(basename $0): cleaning project"
|
echo "$(basename $0): cleaning project"
|
||||||
dotnet clean
|
dotnet clean
|
||||||
|
rm -f src/*/bin/Debug/*.nupkg
|
||||||
|
|
||||||
# Version the file based on the Git repository.
|
# Version the file based on the Git repository.
|
||||||
echo "$(basename $0): setting project version"
|
echo "$(basename $0): setting project version"
|
||||||
|
@ -35,8 +36,8 @@ dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1
|
||||||
|
|
||||||
echo "$(basename $0): publishing NuGet package"
|
echo "$(basename $0): publishing NuGet package"
|
||||||
dotnet nuget remove source mfgames.com >& /dev/null
|
dotnet nuget remove source mfgames.com >& /dev/null
|
||||||
dotnet nuget add source --name mfgames.com --username dmoonfire --password $GITEA_TOKEN https://src.mfgames.com/api/packages/mfgames-cil/nuget/index.json --store-password-in-clear-text || exit 1
|
dotnet nuget add source --name mfgames.com https://src.mfgames.com/api/packages/mfgames-cil/nuget/index.json || exit 1
|
||||||
dotnet nuget push --skip-duplicate --source mfgames.com src/*/bin/Debug/*.nupkg || exit 1
|
dotnet nuget push --api-key $GITEA_TOKEN --skip-duplicate --source mfgames.com src/*/bin/Debug/*.nupkg || exit 1
|
||||||
|
|
||||||
# Tag and push, but only if we don't have a tag.
|
# Tag and push, but only if we don't have a tag.
|
||||||
if ! git tag | grep $SEMVER >& /dev/null
|
if ! git tag | grep $SEMVER >& /dev/null
|
||||||
|
|
Reference in a new issue