Skip to content

Commit 1340a26

Browse files
committed
update github actions
1 parent 17f9068 commit 1340a26

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ jobs:
1010
runs-on: windows-latest
1111
steps:
1212
- name: checkout project
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: setup msbuild
16-
uses: microsoft/setup-msbuild@v1
16+
uses: microsoft/setup-msbuild@v2
1717

1818
- name: setup nuget
19-
uses: NuGet/[email protected]
20-
env:
21-
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
19+
uses: NuGet/setup-nuget@v2
2220

2321
- name: setup cppwinrt
2422
run: nuget restore test.sln

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: windows-latest
1111
steps:
1212
- name: checkout project
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: setup msbuild
16-
uses: microsoft/setup-msbuild@v1
16+
uses: microsoft/setup-msbuild@v2
1717

1818
- name: setup nuget
19-
uses: NuGet/setup-nuget@v1.0.2
20-
env:
21-
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
19+
uses: NuGet/setup-nuget@v2
20+
with:
21+
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
2222

2323
- name: setup cppwinrt
2424
run: nuget restore test.sln
@@ -36,4 +36,4 @@ jobs:
3636
run: nuget.exe pack TestComponent/TestComponent.nuspec -OutputFileNamesWithoutVersion
3737

3838
- name: nuget push
39-
run: nuget push PyWinRT.TestWinRT.nupkg ${{ secrets.NUGET_KEY }} -Source nuget.org
39+
run: nuget push PyWinRT.TestWinRT.nupkg -Source nuget.org

0 commit comments

Comments
 (0)