Merged build & publish steps
This commit is contained in:
parent
30d2ccba76
commit
6464b9f8f3
@ -11,14 +11,19 @@ jobs:
|
||||
- uses: https://github.com/actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '8.x'
|
||||
- name: "Build NuGet package"
|
||||
run: cd MycroForge.CLI && dotnet pack -v d
|
||||
- name: "Publish NuGet package"
|
||||
# - name: "Build NuGet package"
|
||||
# run: cd MycroForge.CLI && dotnet pack -v d
|
||||
- name: "Build and publish NuGet package"
|
||||
run: |
|
||||
# Build the NuGet package
|
||||
cd MycroForge.CLI && dotnet pack -v d
|
||||
|
||||
# Add the NuGet source
|
||||
dotnet nuget add source --name devdisciples \
|
||||
--username ${{ secrets.NUGET_USER }} \
|
||||
--password ${{ secrets.NUGET_PASS }} \
|
||||
--store-password-in-clear-text \
|
||||
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
|
||||
|
||||
# Push the package
|
||||
dotnet nuget push nupkg/MycroForge.CLI.1.0.1.nupkg --source devdisciples
|
||||
|
Loading…
Reference in New Issue
Block a user