Do I have to do this? #1
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
| # Intended to be called from a "prereleased" release event | ||
| name: Pre-Release | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| project_or_solution: | ||
| description: 'The project or solution file to build. If not specified, the action will look for a .sln or .csproj file in the root of the repository.' | ||
| required: false | ||
| type: string | ||
| nuget_version: | ||
| description: 'NuGet Version for the package' | ||
| required: true | ||
| type: string | ||
| dotnet_assembly_version: | ||
| description: '.NET Assembly Version' | ||
| required: true | ||
| type: string | ||
| skip_tests: | ||
| description: 'Skip running tests' | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| jobs: | ||
| build_test_pack_push_nugetorg: | ||
| name: nuget.org | ||
| permissions: | ||
| checks: write | ||
| contents: read | ||
| packages: write | ||
| uses: ./.github/workflows/dotnet-build-test-pack-push-default.yml@nuget-trusted-publishing | ||
| with: | ||
| project_or_solution: ${{ inputs.project_or_solution }} | ||
| nuget_version: ${{ inputs.nuget_version }} | ||
| dotnet_assembly_version: ${{ inputs.dotnet_assembly_version }} | ||
| nuget_source: ${{ vars.NC_NUGET_ORG_API_SOURCE_URL }} | ||
| skip_tests: ${{ inputs.skip_tests }} | ||
| secrets: | ||
| nuget_api_key: ${{ secrets.NC_NUGET_ORG_API_KEY }} | ||