feat: Updated to .NET8 #106
This file contains 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: EventHorizon Nuget Packages | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [opened, synchronize] | |
branches: [ main, dev ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.x' | |
- name: Use GitVersion | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
additionalArguments: '/updateAssemblyInfo' | |
- run: | | |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}" | |
- name: Setup .NET8 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build with dotnet | |
run: dotnet build --configuration Release | |
- name: Pack with dotnet | |
run: dotnet pack EventHorizon.Blazor.TypeScript.Interop.Generator.sln --output nuget-packages --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }} | |
- name: Push with dotnet | |
run: find nuget-packages -name '*.nupkg' | xargs -i dotnet nuget push --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json {} |