diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 7058181..b5fa354 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -7,13 +7,26 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
+ environment: nuget
+
+ permissions:
+ id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
- dotnet-version: "6.0.x"
-
+ dotnet-version: |
+ 6.0.x
+ 8.0.x
+ 10.0.x
+
+ - name: NuGet login
+ uses: NuGet/login@v1
+ id: login
+ with:
+ user: ${{ vars.NUGET_USER }}
+
- name: Restore
run: dotnet restore
@@ -29,4 +42,4 @@ jobs:
if: "!github.event.release.prerelease"
- name: Publish
- run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_KEY }} --skip-duplicate -s https://api.nuget.org/v3/index.json
\ No newline at end of file
+ run: dotnet nuget push "*.nupkg" -k ${{ steps.login.outputs.NUGET_API_KEY }} --skip-duplicate -s https://api.nuget.org/v3/index.json
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e4c95fe..448a731 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -5,15 +5,19 @@ on: [ pull_request ]
jobs:
test:
runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ dotnet-version: [6.0, 8.0, 10.0]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
- dotnet-version: "6.0.x"
-
- - name: Build
- run: dotnet build -c Debug
+ dotnet-version: |
+ 6.0.x
+ 8.0.x
+ 10.0.x
- name: Test
- run: dotnet test
\ No newline at end of file
+ run: dotnet test -f net$({{ matrix.dotnet-version }}) --verbosity normal
diff --git a/libloc.Access/libloc.Access.csproj b/libloc.Access/libloc.Access.csproj
index e978ca9..75790ea 100644
--- a/libloc.Access/libloc.Access.csproj
+++ b/libloc.Access/libloc.Access.csproj
@@ -2,17 +2,30 @@
libloc.Access
- net6.0;net8.0
+ net6.0;net8.0;net10.0
Automated database management for libloc library
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libloc.Tests/libloc.Tests.csproj b/libloc.Tests/libloc.Tests.csproj
index d254d97..3b4a8ef 100644
--- a/libloc.Tests/libloc.Tests.csproj
+++ b/libloc.Tests/libloc.Tests.csproj
@@ -1,22 +1,22 @@
- net6.0;net8.0
+ net10.0
true
false
-
-
-
-
-
-
+
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/libloc/libloc.csproj b/libloc/libloc.csproj
index 07e8b65..d9ab37e 100644
--- a/libloc/libloc.csproj
+++ b/libloc/libloc.csproj
@@ -3,12 +3,12 @@
libloc
true
- net6.0;net8.0
+ net6.0;net8.0;net10.0
A version of IPFire's libloc library rewritten for C#
-
+