File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66 branches : [ main ]
77
8+ permissions :
9+ contents : read
10+ id-token : write
11+
812jobs :
913
1014 build :
3236 - name : setup msbuild
3337 uses : microsoft/setup-msbuild@v2
3438
39+ - name : setup dotnet sign
40+ run : dotnet tool install --tool-path . --prerelease sign
41+
42+ - name : azure login
43+ uses : azure/login@v2
44+ with :
45+ client-id : ${{ secrets.TRUSTED_SIGNING_CLIENT_ID }}
46+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
47+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
48+
3549 - name : build
3650 run : dotnet build -c ${{ env.Configuration }}
3751
4155 - name : pack
4256 run : dotnet pack --no-build --no-restore src/NetOfficeFw.Build.csproj -c ${{ env.Configuration }} -o dist
4357
58+ - name : sign
59+ run : >
60+ ./sign code trusted-signing
61+ **/*.nupkg
62+ --base-directory "${{ github.workspace }}/dist"
63+ --publisher-name "NetOffice"
64+ --description "NetOffice Build Tasks"
65+ --description-url "https://github.com/NetOfficeFw/BuildTasks/"
66+ --trusted-signing-endpoint "https://weu.codesigning.azure.net/"
67+ --trusted-signing-account "OpenSourceSigning"
68+ --trusted-signing-certificate-profile "JozefIzsoOpenSourceProfile"
69+
4470 - name : archive
4571 if : always()
4672 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments