Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Dec 16, 2019
1 parent 16e0f76 commit a1a11bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const { execSync } = require("child_process");
const { unlinkSync, writeFileSync } = require("fs");
const path = require("path");

const GPG_KEY_PATH = path.join(__dirname, "private-key.txt");
const MAVEN_SETTINGS_PATH = path.join(__dirname, "settings.xml");
const gpgKeyPath = path.join(__dirname, "private-key.txt");
const mavenSettingsPath = path.join(__dirname, "settings.xml");

/**
* Logs to the console
Expand Down Expand Up @@ -51,16 +51,16 @@ const runAction = () => {

// Import GPG key into keychain
log("Importing GPG key…");
writeFileSync(GPG_KEY_PATH, getInput("gpg_private_key", true));
run(`gpg --import --batch ${GPG_KEY_PATH}`);
unlinkSync(GPG_KEY_PATH);
writeFileSync(gpgKeyPath, getInput("gpg_private_key", true));
run(`gpg --import --batch ${gpgKeyPath}`);
unlinkSync(gpgKeyPath);

// Deploy to Nexus
// The "deploy" profile is used in case the user wants to perform certain steps only during
// deployment and not in the install phase
log("Deploying the Maven project…");
run(
`mvn clean deploy --batch-mode --activate-profiles deploy --settings ${MAVEN_SETTINGS_PATH} $INPUT_MAVEN_ARGS`,
`mvn clean deploy --batch-mode --activate-profiles deploy --settings ${mavenSettingsPath} $INPUT_MAVEN_ARGS`,
getInput("directory"),
);
};
Expand Down

0 comments on commit a1a11bf

Please sign in to comment.