Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/dotnet-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ on:
required: true
description: The version of Deno to use. The deno platform is used in all of the composite actions used in this workflow.
type: string
build-project:
required: false
description: If true, builds the project to ensure it compiles before performing the release.
default: true
type: boolean
enable-deno-cache:
required: false
description: If true, enables caching of the Deno modules.
Expand Down Expand Up @@ -234,14 +239,18 @@ jobs:
name: Build Main Project
runs-on: "${{ inputs.runs-on }}"
steps:
- uses: actions/checkout@v5
- name: Checkout Repository
if: inputs.build-project == true
uses: actions/checkout@v5

- name: Set Up .NET SDK (${{ inputs.net-sdk-version }})
if: inputs.build-project == true
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.net-sdk-version }}

- name: Run Build
if: inputs.build-project == true
run: dotnet build "${{ github.workspace }}/${{ inputs.project-name }}/${{ inputs.project-name }}.csproj" -c ${{ inputs.build-config }};


Expand Down Expand Up @@ -291,6 +300,7 @@ jobs:
"${{ github.workspace }}/${{ inputs.project-name }}/${{ inputs.project-name }}.csproj" `
-o "${{ github.workspace }}" `
-c ${{ inputs.build-config }} `
${{ inputs.build-project == false && '--no-build' || '' }} `
-p:IncludeSymbols=true `
-p:SymbolPackageFormat=snupkg;

Expand Down