Updated scripts
All checks were successful
Test MycroForge.CLI / test (push) Successful in 2m23s

This commit is contained in:
mdnapo 2024-10-13 18:12:04 +02:00
parent 05051878f2
commit 33ba944f8a
4 changed files with 18 additions and 5 deletions

View File

@ -26,7 +26,7 @@ jobs:
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
# Set the path to the package # Set the path to the package
VERSION=$(grep '<PackageVersion>' < MycroForge.Core.csproj | sed 's/.*<PackageVersion>\(.*\)<\/PackageVersion>/\1/' | xargs) VERSION=$(grep '<PackageVersion>' < MycroForge.PluginTemplate.Package.csproj | sed 's/.*<PackageVersion>\(.*\)<\/PackageVersion>/\1/' | xargs)
PACKAGE="bin/Release/MycroForge.PluginTemplate.Package.$VERSION.nupkg" PACKAGE="bin/Release/MycroForge.PluginTemplate.Package.$VERSION.nupkg"
# Push the package # Push the package

7
MycroForge.Core/scripts/publish-nuget.sh Normal file → Executable file
View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
dotnet build -r Release VERSION=$(grep '<Version>' < MycroForge.Core.csproj | sed 's/.*<Version>\(.*\)<\/Version>/\1/' | tr -d '[:space:]')
dotnet nuget push --source devdisciples bin/Release/MycroForge.Core.1.0.0.nupkg dotnet build -r Releasedo
dotnet nuget push --source devdisciples "bin/Release/MycroForge.Core.$VERSION.nupkg"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/env bash
rm -rf templates/MycroForge.PluginTemplate rm -rf templates/MycroForge.PluginTemplate
cp -R ../MycroForge.PluginTemplate templates/MycroForge.PluginTemplate cp -R ../MycroForge.PluginTemplate templates/MycroForge.PluginTemplate

View File

@ -0,0 +1,12 @@
#!/bin/env bash
rm -rf templates/MycroForge.PluginTemplate
cp -R ../MycroForge.PluginTemplate templates/MycroForge.PluginTemplate
dotnet pack
# Set the path to the package
VERSION=$(grep '<PackageVersion>' < MycroForge.PluginTemplate.Package.csproj | sed 's/.*<PackageVersion>\(.*\)<\/PackageVersion>/\1/' | tr -d '[:space:]')
PACKAGE="bin/Release/MycroForge.PluginTemplate.Package.$VERSION.nupkg"
# Push the package
dotnet nuget push "$PACKAGE" --source devdisciples