github actions: provide gpg passphrase via secrets

No need to keep gpg-agent running on server side anymore.
This commit is contained in:
Leonid Pliushch 2021-06-03 01:37:30 +03:00
parent 5667b389fa
commit 9104125493
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -173,6 +173,7 @@ jobs:
https://packages.termux.org/aptly-api/repos/${REPOSITORY_NAME}/file/${REPOSITORY_NAME}-${{ github.sha }}
# This will cause Aptly to rebuild apt repository.
curl --fail -X PUT -u "${{ secrets.APTLY_API_AUTH }}" \
-H 'Content-Type: application/json' --data '{"Signing": {"Passphrase": "${{ secrets.GPG_PASSPHRASE }}"}}' \
https://packages.termux.org/aptly-api/publish/${REPOSITORY_NAME}/${REPOSITORY_DISTRIBUTION}
fi
- name: Setup ssh key and known_hosts