Skip to content

Commit

Permalink
Create cd_main_nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Larine authored Jan 24, 2024
1 parent 6ece069 commit 04b4d2d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cd_main_nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: cd_main_nuget
on:
workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration release /p:GeneratePackageOnBuild=true /p:PublicRelease=true
- name: Publish package to Nuget.org
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY_GITHUB_CD_WINAPI }} --source https://api.nuget.org/v3/index.json

0 comments on commit 04b4d2d

Please sign in to comment.