Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
leoortizz committed Dec 6, 2023
1 parent 81d3378 commit 356dd43
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions bin/action.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -92981,10 +92981,12 @@ async function deployPreview(gacFilename, deployConfig) {
channelId,
target,
expires,
firebaseToolsVersion
firebaseToolsVersion,
debug
} = deployConfig;
const deploymentText = await execWithCredentials(["hosting:channel:deploy", channelId, ...(target ? ["--only", target] : []), ...(expires ? ["--expires", expires] : [])], projectId, gacFilename, {
firebaseToolsVersion
firebaseToolsVersion,
debug
});
const deploymentResult = JSON.parse(deploymentText.trim());
return deploymentResult;
Expand All @@ -92993,10 +92995,12 @@ async function deployProductionSite(gacFilename, productionDeployConfig) {
const {
projectId,
target,
firebaseToolsVersion
firebaseToolsVersion,
debug
} = productionDeployConfig;
const deploymentText = await execWithCredentials(["deploy", "--only", `hosting${target ? ":" + target : ""}`], projectId, gacFilename, {
firebaseToolsVersion
firebaseToolsVersion,
debug
});
const deploymentResult = JSON.parse(deploymentText);
return deploymentResult;
Expand Down Expand Up @@ -93179,6 +93183,7 @@ const octokit = token ? github.getOctokit(token) : undefined;
const entryPoint = core.getInput("entryPoint");
const target = core.getInput("target");
const firebaseToolsVersion = core.getInput("firebaseToolsVersion");
const debug$1 = core.getBooleanInput("debug");
async function run() {
const isPullRequest = !!github.context.payload.pull_request;
let finish = details => console.log(details);
Expand Down Expand Up @@ -93210,7 +93215,8 @@ async function run() {
const deployment = await deployProductionSite(gacFilename, {
projectId,
target,
firebaseToolsVersion
firebaseToolsVersion,
debug: debug$1
});
if (deployment.status === "error") {
throw Error(deployment.error);
Expand All @@ -93235,7 +93241,8 @@ async function run() {
expires,
channelId,
target,
firebaseToolsVersion
firebaseToolsVersion,
debug: debug$1
});
if (deployment.status === "error") {
throw Error(deployment.error);
Expand Down

0 comments on commit 356dd43

Please sign in to comment.