Skip to content

Commit

Permalink
Deploy Production Code for Commit 2323e01 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Sep 2, 2024
1 parent 2323e01 commit 920cbb3
Show file tree
Hide file tree
Showing 113 changed files with 1,643 additions and 630 deletions.
4 changes: 3 additions & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const core_1 = require("@actions/core");
const github = __importStar(require("@actions/github"));
const util_1 = require("./util");
const { pusher, repository } = github.context.payload;
/* Flags to signal different scenarios to test cases */
/*
* Flags to signal different scenarios to test cases
*/
var TestFlag;
(function (TestFlag) {
TestFlag[TestFlag["NONE"] = 0] = "NONE";
Expand Down
7 changes: 3 additions & 4 deletions lib/lib.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ActionInterface, NodeActionInterface } from './constants';
/** Initializes and runs the action.
*
* @param {object} configuration - The action configuration.
/**
* Initializes and runs the action.
*/
export default function run(configuration: ActionInterface | NodeActionInterface): Promise<void>;
export default function run(configuration?: ActionInterface | NodeActionInterface): Promise<void>;
15 changes: 7 additions & 8 deletions lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ const constants_1 = require("./constants");
const git_1 = require("./git");
const ssh_1 = require("./ssh");
const util_1 = require("./util");
/** Initializes and runs the action.
*
* @param {object} configuration - The action configuration.
/**
* Initializes and runs the action.
*/
function run(configuration) {
return __awaiter(this, void 0, void 0, function* () {
Expand Down Expand Up @@ -49,11 +48,11 @@ function run(configuration) {
❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues`);
(0, core_1.info)('Checking configuration and starting deployment… 🚦');
const settings = Object.assign(Object.assign({}, configuration), {
// Set the default branch for Node configurations
branch: !(0, util_1.isNullOrUndefined)(configuration.branch)
? configuration.branch
: 'gh-pages' });
const settings = Object.assign(Object.assign({}, constants_1.action), configuration);
// Sets the branch to the default value if it's not defined
settings.branch = !(0, util_1.isNullOrUndefined)(settings.branch)
? settings.branch
: 'gh-pages';
// Defines the repository/folder paths and token types.
// Also verifies that the action has all of the required parameters.
settings.folderPath = (0, util_1.generateFolderPath)(settings);
Expand Down
4 changes: 1 addition & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("./constants");
const lib_1 = __importDefault(require("./lib"));
// Runs the action within the GitHub actions environment.
(0, lib_1.default)(constants_1.action);
(0, lib_1.default)();
24 changes: 19 additions & 5 deletions node_modules/@eslint-community/regexpp/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 920cbb3

Please sign in to comment.