diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8abe857..54e70ee 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 on: [ push ] @@ -11,11 +11,15 @@ jobs: - uses: https://github.com/actions/setup-dotnet@v4 with: dotnet-version: '8.x' - - name: "Build MycroForge.CLI NuGet package" + - name: "Build NuGet package" run: cd MycroForge.CLI && dotnet pack -v d - name: "Publish NuGet package" run: | - echo 'Adding package source' - 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 - echo 'Pushing package' + # grep '' < .csproj | sed 's/.*\(.*\)<\/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 push nupkg/MycroForge.CLI.1.0.1.nupkg --source devdisciples diff --git a/MycroForge.CLI/MycroForge.CLI.csproj b/MycroForge.CLI/MycroForge.CLI.csproj index 5688505..47abb2f 100644 --- a/MycroForge.CLI/MycroForge.CLI.csproj +++ b/MycroForge.CLI/MycroForge.CLI.csproj @@ -1,6 +1,7 @@  + 1.0.1 Exe net8.0 enable