Skip to content

Update to dotnet8

Update to dotnet8 #239

Workflow file for this run

name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
id: build
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
id: CodeQL_analysis
uses: github/codeql-action/analyze@v3
- name: Test
id: test
run: dotnet test tests/Autodesk.Forge.Core.Test/Autodesk.Forge.Core.Test.csproj
- name: Publish
id: publish_to_Nuget
if: ${{ github.event_name =='push' && github.ref == 'refs/heads/main'}}
run: |
dotnet msbuild src/Autodesk.Forge.Core/Autodesk.Forge.Core.csproj /t:Push
dotnet msbuild src/Autodesk.Forge.Core.E2eTestHelpers/Autodesk.Forge.Core.E2eTestHelpers.csproj /t:Push
env:
NugetApiKey: ${{ secrets.NUGETAPIKEYBYENGOPS }}