diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a043fb2..1bdc494 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,7 @@ jobs: build: env: - BUILD_CONFIG: 'Release' - SOLUTION: 'MaterialColorUtilities.sln' + CONFIGURATION: 'Release' runs-on: windows-latest @@ -35,25 +34,17 @@ jobs: shell: pwsh - name: Setup .NET - uses: actions/setup-dotnet@v2.0.0 + uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: 7.0.x + global-json-file: global.json - - name: Install .NET workloads - run: dotnet workload install maui && dotnet workload install wasm-tools - - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.6 + - run: dotnet workload restore + - run: dotnet workload install maui - - name: Restore dependencies - run: nuget restore $env:SOLUTION - - - name: Build - run: dotnet build $env:SOLUTION --configuration $env:BUILD_CONFIG -p:Version=$env:BUILD_VERSION --no-restore - - - name: Run tests - run: dotnet test /p:Configuration=$env:BUILD_CONFIG --no-restore --no-build --verbosity normal + - name: Build and run tests + run: dotnet test - name: Publish if: startsWith(github.ref, 'refs/tags/v') - run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} \ No newline at end of file + run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}