Skip to content

Commit

Permalink
Properly push the gh-pages to the origin.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Nov 12, 2023
1 parent fc893b3 commit f8545b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49240,7 +49240,8 @@ async function src_generateWebsite() {
async function pushWebsite() {
const git = esm_default();
await commitWebsite(git);
await git.raw(['subtree', 'push', '--prefix', websiteDir, 'origin', 'gh-pages']);
await git.raw(['subtree', 'split', '--prefix', websiteDir, '--branch', 'gh-pages']);
await git.raw(['push', '--force', 'origin', 'gh-pages:gh-pages']);
}

;// CONCATENATED MODULE: ./bin/main.js
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@ async function generateWebsite() {
async function pushWebsite() {
const git = simpleGit();
await commitWebsite(git);
await git.raw(['subtree', 'push', '--prefix', websiteDir, 'origin', 'gh-pages']);
await git.raw(['subtree', 'split', '--prefix', websiteDir, '--branch', 'gh-pages']);
await git.raw(['push', '--force', 'origin', 'gh-pages:gh-pages']);
}

0 comments on commit f8545b7

Please sign in to comment.