v1.0.6 #6
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: On release created | |
on: | |
release: | |
types: [ created ] | |
jobs: | |
build_prelease_nuget_package: | |
name: Build and push prerelease NuGet package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --configuration Release --no-build --verbosity minimal | |
- name: Pack Fenris.OneOfContrib.Blazor | |
run: | | |
VERSION=${{ github.event.release.tag_name }} | |
VERSION=${VERSION#v} | |
dotnet pack src/Fenris.OneOfContrib.Blazor/ -c Release -o ./artifacts --include-source --verbosity minimal -p:PackageVersion=$VERSION-rc.${{ github.run_number }} | |
- name: Push implementation package | |
run: | | |
dotnet nuget push ./artifacts/*.nupkg \ | |
--source "https://api.nuget.org/v3/index.json" \ | |
--api-key ${{ secrets.NUGET_TOKEN }} | |
- name: Push symbols package | |
run: | | |
dotnet nuget push ./artifacts/*.snupkg \ | |
--source "https://www.nuget.org/api/v2/symbolpackage" \ | |
--api-key ${{ secrets.NUGET_TOKEN }} |