Compare commits

...

6 Commits

Author SHA1 Message Date
8396da2e9a Cleaned up build
Some checks failed
Test MycroForge.CLI / test (push) Has been cancelled
Build and publish MycroForge.CLI / test (push) Failing after 47s
2024-10-06 14:27:10 +02:00
5c7d07afb0 Fixed syntax error
All checks were successful
Build and publish MycroForge.CLI / test (push) Successful in 41s
Test MycroForge.CLI / test (push) Has been skipped
2024-10-06 14:20:47 +02:00
52d2507891 Listing nupkg directory
Some checks failed
Build and publish MycroForge.CLI / test (push) Failing after 56s
Test MycroForge.CLI / test (push) Has been skipped
2024-10-06 14:16:41 +02:00
7d677d27c6 Trying with full path
Some checks failed
Build and publish MycroForge.CLI / test (push) Failing after 49s
Test MycroForge.CLI / test (push) Has been skipped
2024-10-06 14:13:22 +02:00
0f85244681 Changed version variable reference
Some checks failed
Build and publish MycroForge.CLI / test (push) Failing after 1m5s
Test MycroForge.CLI / test (push) Has been skipped
2024-10-06 14:09:00 +02:00
d59bf264b0 Changed dotnet pack verbosity level
Some checks failed
Build and publish MycroForge.CLI / test (push) Failing after 49s
Test MycroForge.CLI / test (push) Has been skipped
2024-10-06 14:06:36 +02:00

View File

@ -14,7 +14,7 @@ jobs:
- name: "Build and publish NuGet package"
run: |
# Build the NuGet package
cd MycroForge.CLI && dotnet pack -v d
cd MycroForge.CLI && dotnet pack -v m
# Add the NuGet source
dotnet nuget add source --name devdisciples \
@ -23,7 +23,8 @@ jobs:
--store-password-in-clear-text \
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
VERSION=$(grep '<Version>' < MycroForge.CLI.csproj | sed 's/.*<Version>\(.*\)<\/Version>/\1/')
# Get the path to the package
PACKAGE="nupkg/$(ls nupkg)"
# Push the package
dotnet nuget push "nupkg/MycroForge.CLI.$VERSION.nupkg" --source devdisciples
dotnet nuget push "PACKAGE" --source devdisciples