Added version to .csproj
All checks were successful
Test MycroForge.CLI / test (push) Has been skipped
All checks were successful
Test MycroForge.CLI / test (push) Has been skipped
This commit is contained in:
parent
f8efd45076
commit
38b83ac8ac
@ -1,4 +1,4 @@
|
|||||||
name: Build MycroForge.CLI
|
name: Build and publish MycroForge.CLI
|
||||||
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.CLI
|
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.CLI
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
@ -11,11 +11,15 @@ jobs:
|
|||||||
- uses: https://github.com/actions/setup-dotnet@v4
|
- uses: https://github.com/actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.x'
|
dotnet-version: '8.x'
|
||||||
- name: "Build MycroForge.CLI NuGet package"
|
- name: "Build NuGet package"
|
||||||
run: cd MycroForge.CLI && dotnet pack -v d
|
run: cd MycroForge.CLI && dotnet pack -v d
|
||||||
- name: "Publish NuGet package"
|
- name: "Publish NuGet package"
|
||||||
run: |
|
run: |
|
||||||
echo 'Adding package source'
|
# grep '<Version>' < .csproj | sed 's/.*<Version>\(.*\)<\/Version>/\1/'
|
||||||
dotnet nuget add source --name devdisciples --username ${{secrets.NUGET_USER}} --password ${{ NUGET_PASS }} --store-password-in-clear-text https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
|
dotnet nuget add source --name devdisciples \
|
||||||
echo 'Pushing package'
|
--username ${{ secrets.NUGET_USER }} \
|
||||||
|
--password ${{ NUGET_PASS }} \
|
||||||
|
--store-password-in-clear-text \
|
||||||
|
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
|
||||||
|
|
||||||
dotnet nuget push nupkg/MycroForge.CLI.1.0.1.nupkg --source devdisciples
|
dotnet nuget push nupkg/MycroForge.CLI.1.0.1.nupkg --source devdisciples
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<Version>1.0.1</Version>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
Loading…
Reference in New Issue
Block a user