1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 09:38:31 +00:00

Updated build-scripts to net9

This commit is contained in:
DarthAffe 2025-01-14 22:16:03 +01:00
parent 39da0fd59c
commit 9945a5f7cb
3 changed files with 16 additions and 1 deletions

View File

@ -24,6 +24,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
@ -31,6 +32,12 @@ jobs:
run: dotnet build --no-restore --configuration Release /p:Version=${{ github.event.inputs.version }}-prerelease.${{ github.event.inputs.increment }}
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release
- name: Upload a Build Artifact NET9
uses: actions/upload-artifact@v4.3.1
with:
name: RGB.NET-NET9
path: bin/net9.0/RGB.NET.*.dll
if-no-files-found: error
- name: Upload a Build Artifact NET8
uses: actions/upload-artifact@v4.3.1
with:

View File

@ -15,6 +15,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore

View File

@ -20,6 +20,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
@ -27,6 +28,12 @@ jobs:
run: dotnet build --no-restore --configuration Release /p:Version=${{ github.event.inputs.version }}
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release
- name: Upload a Build Artifact NET9
uses: actions/upload-artifact@v4.3.1
with:
name: RGB.NET-NET9
path: bin/net9.0/RGB.NET.*.dll
if-no-files-found: error
- name: Upload a Build Artifact NET8
uses: actions/upload-artifact@v4.3.1
with:
@ -44,6 +51,6 @@ jobs:
with:
tag_name: v${{ github.event.inputs.version }}
generate_release_notes: true
files: bin/net8.0/RGB.NET.*.dll
files: bin/net9.0/RGB.NET.*.dll
- name: Nuget Push
run: dotnet nuget push **\*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json