Fix targets #34
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: Nuget | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| # Publish semver tags as releases. | |
| tags: [ 'v*.*.*' ] | |
| env: | |
| DOTNET_NOLOGO: 1 | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1 | |
| jobs: | |
| nuget-publish: | |
| name: Package Commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 9.0.x | |
| 8.0.x | |
| 7.0.x | |
| - name: Pack n Push | |
| run: | | |
| dotnet build -c Release | |
| dotnet pack -c Release -o build --no-build | |
| dotnet nuget push "build/*" --skip-duplicate -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json |