Bump GitVersion.MsBuild from 5.12.0 to 6.0.2 #31
Workflow file for this run
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: dotnet build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: [ '7.0.x' ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Restore .NET Packages | |
run: dotnet restore | |
- name: Build .NET Solution | |
run: dotnet build --configuration Release --no-restore | |
- name: Pack .NET Solution | |
run: dotnet pack --no-build --output pack/ | |
- name: Publish .NET Solution to GitHub Packages | |
continue-on-error: true | |
run: dotnet nuget push pack/* --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" | |
- name: Publish .NET Solution to NuGet.org | |
continue-on-error: true | |
run: dotnet nuget push pack/* --skip-duplicate --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget | |