This commit is contained in:
parent
05051878f2
commit
33ba944f8a
@ -26,7 +26,7 @@ jobs:
|
||||
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
|
||||
|
||||
# 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"
|
||||
|
||||
# Push the package
|
||||
|
7
MycroForge.Core/scripts/publish-nuget.sh
Normal file → Executable file
7
MycroForge.Core/scripts/publish-nuget.sh
Normal file → Executable file
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
dotnet build -r Release
|
||||
dotnet nuget push --source devdisciples bin/Release/MycroForge.Core.1.0.0.nupkg
|
||||
VERSION=$(grep '<Version>' < MycroForge.Core.csproj | sed 's/.*<Version>\(.*\)<\/Version>/\1/' | tr -d '[:space:]')
|
||||
dotnet build -r Releasedo
|
||||
dotnet nuget push --source devdisciples "bin/Release/MycroForge.Core.$VERSION.nupkg"
|
||||
|
2
MycroForge.PluginTemplate.Package/scripts/build_package.sh → MycroForge.PluginTemplate.Package/scripts/build-package.sh
Normal file → Executable file
2
MycroForge.PluginTemplate.Package/scripts/build_package.sh → MycroForge.PluginTemplate.Package/scripts/build-package.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/env bash
|
||||
|
||||
rm -rf templates/MycroForge.PluginTemplate
|
||||
cp -R ../MycroForge.PluginTemplate templates/MycroForge.PluginTemplate
|
12
MycroForge.PluginTemplate.Package/scripts/publish-nuget.sh
Executable file
12
MycroForge.PluginTemplate.Package/scripts/publish-nuget.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user