build-git-installers: publish gpg public key

Update build-git-installers workflow to publish `microsoft/git`'s GPG public
key as part of each release. Add explanation for how to use this key to verify
the Debian package's signature to the README.
This commit is contained in:
Lessley 2023-10-24 15:45:05 -06:00 коммит произвёл Johannes Schindelin
Родитель 4cab821900
Коммит 91c915924b
1 изменённых файлов: 17 добавлений и 0 удалений

17
.github/workflows/build-git-installers.yml поставляемый
Просмотреть файл

@ -587,6 +587,10 @@ jobs:
- create-macos-artifacts
- windows_artifacts
- prereqs
env:
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
GPG_PUBLIC_KEY_SECRET_NAME: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
environment: release
if: |
success() ||
(needs.create-linux-artifacts.result == 'skipped' &&
@ -616,6 +620,19 @@ jobs:
with:
name: linux-artifacts
path: deb-package
- name: Log into Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Download GPG public key signature file
run: |
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
--vault-name "$AZURE_VAULT" --query "value" \
| sed -e 's/^"//' -e 's/"$//' | base64 -d >msft-git-public.asc
mv msft-git-public.asc deb-package
- uses: actions/github-script@v6
with:
script: |