File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,26 +14,19 @@ jobs:
1414
1515 steps :
1616 - name : Clone Repo
17- uses : actions/checkout@v1
17+ uses : actions/checkout@v4
1818
1919 - name : Setup Visual Studio Command Prompt
20- uses : microsoft/setup-msbuild@v1.1
21-
22- # - name: Get certificate
23- # id: cert_file
24- # uses: timheuer/base64-to-file@v1.2
25- # with:
26- # fileName: 'certfile.pfx'
27- # encodedString: ${{ secrets.BASE64_ENCODED_PFX }}
28-
20+ uses : microsoft/setup-msbuild@v2
21+
2922 - name : Build
3023 run : |
31- msbuild /restore /t:Build,Pack src/WinUIEx/WinUIEx.csproj /p:Configuration=Release /p:CertificatePath=${{ steps.cert_file.outputs.filePath }} /p:CertificatePassword=${{ secrets.PFX_PASSWORD }}
32-
33- # - name: Sign NuGet Package
34- # run: |
35- # nuget sign artifacts\NuGet\Release\*.nupkg -CertificatePath ${{ steps.cert_file.outputs.filePath }} -CertificatePassword ${{ secrets.PFX_PASSWORD }} -Timestamper http://timestamp.digicert.com -NonInteractive
36- # nuget sign artifacts\NuGet\Release\*.snupkg -CertificatePath ${{ steps.cert_file.outputs.filePath }} -CertificatePassword ${{ secrets.PFX_PASSWORD }} -Timestamper http://timestamp.digicert.com -NonInteractive
24+ msbuild /restore /t:Build src/WinUIEx/WinUIEx.csproj /p:Configuration=Release
25+
26+
27+ - name : Pack
28+ run : |
29+ msbuild /t:Pack src/WinUIEx/WinUIEx.csproj /p:Configuration=Release /p:NoBuild=true
3730
3831 - name : Upload artifacts
3932 uses : actions/upload-artifact@v4
5144 - name : Push to NuGet
5245 run : |
5346 dotnet nuget push artifacts\NuGet\Release\*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
54- dotnet nuget push artifacts\NuGet\Release\*.snupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments