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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ name: Publish Nuget package
jobs:
build:
runs-on: ubuntu-latest

permissions:
id-token: write # enable GitHub OIDC token issuance for this job
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-build --verbosity normal -c Release
- name: NuGet login (OIDC → temp API key) # Get a short-lived NuGet API key
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGET_USER }}
- name: Push
run: dotnet nuget push "./build/*.symbols.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push "./build/*.symbols.nupkg" --skip-duplicate --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
5 changes: 5 additions & 0 deletions AspNetCore.DataProtection.CustomStorage.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<Project Path="src\AspNetCore.DataProtection.CustomStorage.Dapper.SQLServer\AspNetCore.DataProtection.CustomStorage.Dapper.SQLServer.csproj" />
<Project Path="src\AspNetCore.DataProtection.CustomStorage.Dapper.PostgreSQL\AspNetCore.DataProtection.CustomStorage.Dapper.PostgreSQL.csproj" />
</Folder>
<Folder Name="/github/">
<File Path=".github/workflows/build.yml" />
<File Path=".github/workflows/github-release.yml" />
<File Path=".github/workflows/nuget-publish.yml" />
</Folder>
<Folder Name="/SolutionItems/">
<File Path="LICENSE" />
<File Path="NuGet.Config" />
Expand Down
Loading