Skip to content

Bumping to .net 8.0 #28

Bumping to .net 8.0

Bumping to .net 8.0 #28

Workflow file for this run

name: .NET Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test Rebus.CastleWindsor.Tests --no-build --verbosity normal -c Release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
dotnet nuget locals all --clear
dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test Rebus.CastleWindsor.Tests --no-build --verbosity normal -c Release
deploy:
needs: [build-windows, build-ubuntu]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | cut -d "v" -f 2)
- name: Build
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack Rebus.CastleWindsor.sln -c Release -o ./artifacts -p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
- name: Push generated Rebus package to GitHub registry
run: dotnet nuget push /home/runner/work/Rebus.CastleWindsor/Rebus.CastleWindsor/artifacts/Microting.Rebus.Castle.Windsor.${{ steps.get_version.outputs.VERSION }}.nupkg -k ${{secrets.NUGET_SECRET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols