-
-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code sign 2.18 using Windows instead of macOS
- Loading branch information
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,23 +75,32 @@ jobs: | |
path: "build/output_packages/*.nupkg" | ||
if-no-files-found: warn | ||
retention-days: 1 | ||
- name: Sign Packages | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }} | ||
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 }} | ||
- name: Push to Experimental Feed | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} | ||
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 }} | ||
- name: Push to GitHub Packages | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} | ||
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 }} | ||
PushRelease: | ||
name: Push Release to NuGet | ||
runs-on: windows-latest | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }} | ||
needs: [Build] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
submodules: 'false' | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: unsigned_nupkgs | ||
path: build/output_packages | ||
- name: Sign Packages | ||
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 }} | ||
- name: Upload Signed Artifacts to Actions | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }} | ||
uses: actions/[email protected] | ||
with: | ||
name: signed_nupkgs | ||
path: "build/output_packages/*.nupkg" | ||
if-no-files-found: warn | ||
- name: Push to NuGet | ||
if: ${{ github.repository == 'dotnet/Silk.NET' && startsWith(github.ref, 'refs/tags/') }} | ||
run: ./build.sh PushToNuGet --skip Clean Restore Pack --nuget-api-key ${{ secrets.NUGET_TOKEN }} | ||
|
||
run: .\build.cmd PushToNuGet --skip Clean Restore Pack --nuget-api-key ${{ secrets.NUGET_TOKEN }} |