Added global.json file to force which version of compiler is used whe… #114
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: Build/Publish Preview Nuget | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
push_nuget: | |
description: "Push to nuget.org" | |
required: true | |
type: boolean | |
default: false | |
nuget_version_override: | |
description: "Nuget Version Override" | |
required: false | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_VERSION: 8.0.100 # same version that's in global.json. Use low version so clients can use it with an older version of compiler | |
SRC_DIRECTORY_PATH_LIB: ${{ github.workspace }}/src | |
NUGET_VERSION: ${{ github.event.inputs.nuget_version_override || '0.1.0-preview' }}.${{ github.run_number }} | |
PUSH_NUGET: ${{ github.event.inputs.push_nuget || false }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Cake Frosting Build and Push NuGet | |
run: dotnet run --project ${{ github.workspace }}/build/Build.csproj -- --srcDirectoryPath=${{ env.SRC_DIRECTORY_PATH_LIB }} --nugetVersion=${{ env.NUGET_VERSION }} --pushNuget=${{ env.PUSH_NUGET }} --nugetPushToken=${{ secrets.NUGET_PUSH_TOKEN }} |