Added support for GPG

This commit is contained in:
Jared Petersen 2020-05-02 04:33:15 -07:00
parent 5c87b70ffe
commit 798fdaeebd
6 changed files with 208 additions and 37 deletions

View file

@ -23,8 +23,18 @@ async function run() {
core.getInput('server-username', {required: false}) || undefined;
const password =
core.getInput('server-password', {required: false}) || undefined;
const gpgPassphrase =
core.getInput('gpg-passphrase', {required: false}) || undefined;
const gpgPrivateKey =
core.getInput('gpg-private-key', {required: false}) || undefined;
await auth.configAuthentication(id, username, password);
await auth.configAuthentication(
id,
username,
password,
gpgPassphrase,
gpgPrivateKey
);
} catch (error) {
core.setFailed(error.message);
}