Publish Project #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Project | |
| on: | |
| release: | |
| types: | |
| - published | |
| env: | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| DOTNET_NOLOGO: true | |
| PROJECT_NAME: HODI | |
| NUGET_FEED: https://api.nuget.org/v3/index.json | |
| NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
| jobs: | |
| build-package: | |
| uses: ./.github/workflows/release_build.yml | |
| deploy: | |
| needs: build-package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.* | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v4.1.7 | |
| with: | |
| name: nupkg | |
| - name: Push to NuGet Feed | |
| run: | | |
| ls -lah | |
| dotnet nuget push ./*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY |