Skip to content

Commit ccb4b30

Browse files
committed
Clean up
1 parent 32f0488 commit ccb4b30

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/publish_winuiex_nuget.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff 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
@@ -51,4 +44,3 @@ jobs:
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

0 commit comments

Comments
 (0)