pull/14/head
Bruno Paz 3 years ago
parent 265cc088c9
commit 8608046dc8

@ -32,6 +32,7 @@ GitHub Action for creating Cloudflare Pages deployments, using the new [Direct U
projectName: YOUR_PROJECT_NAME projectName: YOUR_PROJECT_NAME
directory: YOUR_ASSET_DIRECTORY directory: YOUR_ASSET_DIRECTORY
gitHubToken: ${{ secrets.GITHUB_TOKEN }} gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: OPTIONAL_BRANCH_NAME_TO_DEPLOY
``` ```
1. Replace `YOUR_ACCOUNT_ID`, `YOUR_PROJECT_NAME` and `YOUR_ASSET_DIRECTORY` with the appropriate values to your Pages project. 1. Replace `YOUR_ACCOUNT_ID`, `YOUR_PROJECT_NAME` and `YOUR_ASSET_DIRECTORY` with the appropriate values to your Pages project.

@ -16155,7 +16155,7 @@ try {
environmentName, environmentName,
productionEnvironment productionEnvironment
}) => { }) => {
let result = await octokit.rest.repos.createDeploymentStatus({ await octokit.rest.repos.createDeploymentStatus({
owner: import_github.context.repo.owner, owner: import_github.context.repo.owner,
repo: import_github.context.repo.repo, repo: import_github.context.repo.repo,
deployment_id: id, deployment_id: id,
@ -16166,7 +16166,6 @@ try {
description: "Cloudflare Pages", description: "Cloudflare Pages",
state: "success" state: "success"
}); });
console.log(result);
}; };
(async () => { (async () => {
const gitHubDeployment = await createGitHubDeployment(); const gitHubDeployment = await createGitHubDeployment();

@ -109,7 +109,7 @@ try {
environmentName: string; environmentName: string;
productionEnvironment: boolean; productionEnvironment: boolean;
}) => { }) => {
let result = await octokit.rest.repos.createDeploymentStatus({ await octokit.rest.repos.createDeploymentStatus({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
deployment_id: id, deployment_id: id,
@ -121,8 +121,6 @@ try {
description: "Cloudflare Pages", description: "Cloudflare Pages",
state: "success", state: "success",
}); });
console.log(result);
}; };
(async () => { (async () => {

Loading…
Cancel
Save