Compare commits
2 Commits
05051878f2
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 21f4e7765b | |||
| 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
|
||||
|
||||
@@ -52,7 +52,7 @@ public sealed partial class Api : IFeature
|
||||
|
||||
await context.Bash(
|
||||
"source .venv/bin/activate",
|
||||
"python3 -m pip install fastapi",
|
||||
"python3 -m pip install fastapi uvicorn",
|
||||
"python3 -m pip freeze > requirements.txt"
|
||||
);
|
||||
|
||||
|
||||
0
MycroForge.CLI/scripts/publish-tool.sh
Normal file → Executable file
0
MycroForge.CLI/scripts/publish-tool.sh
Normal file → Executable file
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
|
||||
Reference in New Issue
Block a user