mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
4b2f84d384
* Version 3 Beta * README Updates * More readme updates * lock * Restoring license/contrib * One set of tests * linting * More tests * Finish up unit tests * Update action.yml * Update main.yml * Update README.md * Update README.md * README Changes * Update README.md * Unit testing job * Some more stuff * More cleanup * Update README.md * Unrequired * Update CONTRIBUTING.md * no guess * Using Git Switch as opposed to checkout * Force Commit * Remove git * Some more simplification * Update git.ts * changes * Options * w * Debugging * More debugging * More debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debug * Debugging * Another 1 * Update git.ts * Fixes root deployment * Quiet Mode * Quiet * Excluding .github * Update README.md
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
"use strict";
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
result["default"] = mod;
|
|
return result;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const core = __importStar(require("@actions/core"));
|
|
const github = __importStar(require("@actions/github"));
|
|
const { pusher, repository } = github.context.payload;
|
|
exports.workspace = process.env.GITHUB_WORKSPACE;
|
|
exports.folder = core.getInput("FOLDER", { required: true });
|
|
exports.root = ".";
|
|
// Required action data.
|
|
exports.action = {
|
|
build: exports.folder,
|
|
gitHubRepository: repository ? repository.full_name : "",
|
|
gitHubToken: core.getInput("GITHUB_TOKEN"),
|
|
accessToken: core.getInput("ACCESS_TOKEN"),
|
|
branch: core.getInput("BRANCH"),
|
|
baseBranch: core.getInput("BASE_BRANCH") || "master",
|
|
pusher
|
|
};
|
|
// Repository path used for commits/pushes.
|
|
exports.repositoryPath = `https://${exports.action.accessToken ||
|
|
`x-access-token:${exports.action.gitHubToken}`}@github.com/${exports.action.gitHubRepository}.git`;
|