Skip to content

Commit 4270540

Browse files
committed
Update pipelines
1 parent 4af317a commit 4270540

File tree

5 files changed

+11
-157
lines changed

5 files changed

+11
-157
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ jobs:
3333
with:
3434
lfs: true
3535
fetch-depth: 0
36-
- name: "Install .NET 8.0 SDK"
36+
- name: "Setup dotnet"
3737
uses: actions/[email protected]
3838
with:
39-
dotnet-version: 8.0.x
39+
dotnet-version: |
40+
8.0.x
41+
10.0.x
4042
- name: "Dotnet Tool Restore"
4143
run: dotnet tool restore
4244
shell: pwsh
@@ -84,6 +86,7 @@ jobs:
8486
url: https://github.com/TimmyMC/Schema.NET/packages
8587
permissions:
8688
packages: write
89+
id-token: write
8790
runs-on: windows-latest
8891
steps:
8992
- name: "Download Artefact"
@@ -110,9 +113,14 @@ jobs:
110113
uses: actions/[email protected]
111114
with:
112115
name: "windows-latest"
116+
- name: NuGet login (OIDC → temp API key)
117+
uses: NuGet/login@v1
118+
id: login
119+
with:
120+
user: "TimmyMC"
113121
- name: "Dotnet NuGet Push"
114122
run: |
115123
Get-ChildItem .\ -Filter *.nupkg |
116124
Where-Object { !$_.Name.Contains('preview') } |
117-
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
125+
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ steps.login.outputs.NUGET_API_KEY }} }
118126
shell: pwsh

Key.snk

-596 Bytes
Binary file not shown.

Schema.NET.sln

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
.editorconfig = .editorconfig
1515
.gitattributes = .gitattributes
1616
.gitignore = .gitignore
17-
appveyor.yml = appveyor.yml
18-
azure-pipelines.yml = azure-pipelines.yml
1917
build.cake = build.cake
2018
Directory.Build.props = Directory.Build.props
2119
Directory.Build.targets = Directory.Build.targets
2220
dotnet-tools.json = dotnet-tools.json
2321
global.json = global.json
24-
Key.snk = Key.snk
2522
EndProjectSection
2623
EndProject
2724
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Schema.NET", "Source\Schema.NET\Schema.NET.csproj", "{266BBA60-25FD-4C1B-BD99-9DCFA1B57130}"

appveyor.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)