forked from microsoft/git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
801c2cf
commit 32f2929
Showing
1 changed file
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: bare-bones | ||
|
||
on: push | ||
|
||
jobs: | ||
# Build and sign Windows installers & upload artifacts | ||
windows_pkg: | ||
runs-on: windows-2019 | ||
environment: release | ||
steps: | ||
- name: Log into Azure | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Install Azure Code Signing Module | ||
shell: pwsh | ||
run: | | ||
Install-Module -Name AzureCodeSigning -RequiredVersion 0.2.24 -Force ` | ||
-Repository PSGallery | ||
- name: Configure and Run Azure Code Signing | ||
shell: bash | ||
run: | | ||
git config alias.signtool '!f() { printf "%s\n" "$@" >./catalog && powershell -command "Invoke-AzureCodeSigning -Endpoint https://wus2.codesigning.azure.net/ -CodeSigningAccountName git-fundamentals-signing -CertificateProfileName git-fundamentals-windows-signing -FilesCatalog ./catalog -FileDigest SHA256 -TimestampRfc3161 http://timestamp.acs.microsoft.com -TimestampDigest SHA256"; };f' | ||
# Install Azure Code Signing Module | ||
/c/Windows/System32/WindowsPowerShell/v1.0/powershell -command "Install-Module -Name AzureCodeSigning -RequiredVersion 0.2.24 -Force -Repository PSGallery" | ||
mv /mingw64/bin/git.exe . | ||
git signtool git.exe |