bare bones #1
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
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 |