Skip to content

Commit 6095c71

Browse files
authored
Code sign 2.18 using Windows instead of macOS
1 parent 521e18a commit 6095c71

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,32 @@ jobs:
7575
path: "build/output_packages/*.nupkg"
7676
if-no-files-found: warn
7777
retention-days: 1
78-
- name: Sign Packages
79-
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }}
80-
run: ./build.sh SignPackages --akv-certificate ${{ secrets.AKV_CERTIFICATE }} --akv-client-id ${{ secrets.AKV_CLIENT_ID }} --akv-client-secret ${{ secrets.AKV_CLIENT_SECRET }} --akv-tenant ${{ secrets.AKV_TENANT }} --akv-vault-url ${{ secrets.AKV_VAULT_URL }}
8178
- name: Push to Experimental Feed
8279
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
8380
run: ./build.sh PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://dotnet.github.io/Silk.NET/nuget/experimental/index.json --nuget-username ${{ secrets.EXP_NUGET_USERNAME }} --nuget-password ${{ secrets.EXP_NUGET_PASSWORD }} --nuget-api-key ${{ secrets.EXP_NUGET_PASSWORD }}
8481
- name: Push to GitHub Packages
8582
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
8683
run: ./build.sh PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}
84+
PushRelease:
85+
name: Push Release to NuGet
86+
runs-on: windows-latest
87+
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }}
88+
needs: [Build]
89+
steps:
90+
- uses: actions/[email protected]
91+
with:
92+
submodules: 'false'
93+
- uses: actions/download-artifact@v3
94+
with:
95+
name: unsigned_nupkgs
96+
path: build/output_packages
97+
- name: Sign Packages
98+
run: .\build.cmd SignPackages --akv-certificate ${{ secrets.AKV_CERTIFICATE }} --akv-client-id ${{ secrets.AKV_CLIENT_ID }} --akv-client-secret ${{ secrets.AKV_CLIENT_SECRET }} --akv-tenant ${{ secrets.AKV_TENANT }} --akv-vault-url ${{ secrets.AKV_VAULT_URL }}
8799
- name: Upload Signed Artifacts to Actions
88-
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }}
89100
uses: actions/[email protected]
90101
with:
91102
name: signed_nupkgs
92103
path: "build/output_packages/*.nupkg"
93104
if-no-files-found: warn
94105
- name: Push to NuGet
95-
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }}
96-
run: ./build.sh PushToNuGet --skip Clean Restore Pack --nuget-api-key ${{ secrets.NUGET_TOKEN }}
97-
106+
run: .\build.cmd PushToNuGet --skip Clean Restore Pack --nuget-api-key ${{ secrets.NUGET_TOKEN }}

0 commit comments

Comments
 (0)