-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(release): publish artifacts to CDN
- Loading branch information
1 parent
dacdd9c
commit ebc7d25
Showing
8 changed files
with
175 additions
and
167 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
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Description: Post build script to compress the themes and generate SHA256 hashes for all files in the dist folder | ||
|
||
# Compress all themes | ||
$compress = @{ | ||
Path = "../themes/*.omp.*" | ||
CompressionLevel = "Fastest" | ||
DestinationPath = "../src/dist/themes.zip" | ||
} | ||
Compress-Archive @compress | ||
|
||
# Generate SHA256 hashes for all files in the dist folder | ||
Get-ChildItem ./dist -Exclude *.yaml, *.sig | Get-Unique | | ||
Foreach-Object { | ||
$zipHash = Get-FileHash $_.FullName -Algorithm SHA256 | ||
$zipHash.Hash | Out-File -Encoding 'UTF8' "../src/dist/$($_.Name).sha256" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Param | ||
( | ||
[string] | ||
$Version, | ||
[parameter(Mandatory = $false)] | ||
[string] | ||
$SDKVersion = "10.0.22621.0" | ||
) | ||
|
||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git tag $Version --force | ||
|
||
$PSDefaultParameterValues['Out-File:Encoding'] = 'UTF8' | ||
|
||
$shaSigningKeyLocation = Join-Path -Path $env:RUNNER_TEMP -ChildPath sha_signing_key.pem | ||
$env:SIGNING_KEY > $shaSigningKeyLocation | ||
Write-Output "SHA_SIGNING_KEY_LOCATION=$shaSigningKeyLocation" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
||
# install code signing dlib | ||
nuget.exe install Microsoft.Trusted.Signing.Client -Version 1.0.60 -ExcludeVersion -OutputDirectory $env:RUNNER_TEMP | ||
Write-Output "SIGNTOOLDLIB=$env:RUNNER_TEMP/Microsoft.Trusted.Signing.Client/bin/x64/Azure.CodeSigning.Dlib.dll" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
||
# requires Windows Dev Kit 10.0.22621.0 | ||
$signtool = "C:/Program Files (x86)/Windows Kits/10/bin/$SDKVersion/x64/signtool.exe" | ||
Write-Output "SIGNTOOL=$signtool" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
||
# openssl | ||
$openssl = 'C:/Program Files/Git/usr/bin/openssl.exe' | ||
Write-Output "OPENSSL=$openssl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
Oops, something went wrong.