Fixed invalid solution name in build pipeline #2
Workflow file for this run
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: π Release | |
| on: | |
| push: | |
| tags: | |
| - '1.*' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout | |
| uses: actions/checkout@v4 | |
| - name: π Install .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 8.x | |
| 9.x | |
| 10.x | |
| - name: π Restore | |
| run: dotnet restore ChilliCream.Snowflake.slnx | |
| - name: ποΈ Build | |
| run: dotnet build ChilliCream.Snowflake.sln --configuration Release --no-restore | |
| - name: β Test | |
| run: dotnet test ChilliCream.Snowflake.sln --configuration Release --no-build --logger trx | |
| publish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout | |
| uses: actions/checkout@v4 | |
| - name: π Install .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 8.x | |
| 9.x | |
| 10.x | |
| - name: πΎ Restore | |
| run: dotnet restore ChilliCream.Snowflake.slnx | |
| - name: ποΈ Build (Release) | |
| run: dotnet build src/ChilliCream.Snowflake.csproj -c Release --no-restore | |
| - name: π¦ Pack | |
| run: | | |
| VERSION=${GITHUB_REF#refs/tags/} | |
| dotnet pack src/ChilliCream.Snowflake.csproj \ | |
| --configuration Release \ | |
| --no-build \ | |
| -p:PackageVersion=$VERSION \ | |
| -o ./artifacts | |
| - name: π Push to NuGet | |
| run: dotnet nuget push ./artifacts/*.nupkg \ | |
| --api-key ${{ secrets.NUGET_API_KEY }} \ | |
| --source https://api.nuget.org/v3/index.json \ | |
| --skip-duplicate |