Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET 8
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.100
dotnet-version: 10
- name: Restore .NET tools
run: dotnet tool restore
working-directory: ./JsonPatchDocumentExtensionDataAdapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ on:

jobs:
pushrelease:
runs-on: windows-latest
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
permissions:
id-token: write # enable GitHub OIDC token issuance for this job
environment: "release" # has to match the policy name in the nuget.org Trusted Publishing setup.
# if the environment name is not set here, you'll run into an error message like "Error: Token exchange failed (401): Environment mismatch for policy 'release': expected 'release', actual ''"
steps:
- uses: actions/checkout@v6
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.100
dotnet-version: 10
- uses: olegtarasov/get-tag@v2.1
id: tagChrono
with:
Expand All @@ -29,12 +33,13 @@ jobs:
- name: Create Package JsonPatchDocumentExtensionDataAdapter (dotnet pack)
working-directory: "JsonPatchDocumentExtensionDataAdapter/JsonPatchDocumentExtensionDataAdapter"
run: dotnet pack JsonPatchDocumentExtensionDataAdapter.csproj --configuration Release -p:PackageVersion="${{ steps.tagChrono.outputs.tag }}"
- name: Setup Nuget.exe
uses: warrenbuckley/Setup-Nuget@v1
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: hf-kklein
# because the package is owned by hf-kklein: https://www.nuget.org/packages/JsonPatchDocumentExtensionDataAdapter
- name: Nuget push JsonPatchDocumentExtensionDataAdapter
working-directory: "JsonPatchDocumentExtensionDataAdapter/JsonPatchDocumentExtensionDataAdapter"
# token: https://github.com/Hochfrequenz/JsonPatchDocumentExtensionDataAdapter/settings/secrets/actions/NUGET_ORG_PUSH_TOKEN
# expires 2026-09-21
run: |
nuget setApiKey ${{ secrets.NUGET_ORG_PUSH_TOKEN }}
nuget push .\bin\Release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -NoSymbols
dotnet nuget push ./bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} --skip-duplicate
4 changes: 2 additions & 2 deletions .github/workflows/unittests_and_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ "8.0.401" ]
dotnet-version: ["8", "9", "10"]
steps:
- uses: actions/checkout@v6
- name: Setup .NET Core
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.100
dotnet-version: 10
- name: Install dependencies
working-directory: ./JsonPatchDocumentExtensionDataAdapter
run: dotnet restore
Expand Down