Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit e259a28

Browse files
committed
fix(docs-site): deploy on commit to master
1 parent 714991b commit e259a28

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/scripts/publish-docs-site/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ import { execSync } from "child_process";
33

44
if (require.main === module) {
55
const path = joinPathFragments(__dirname, '../../../dist/apps/docs-site');
6-
execSync('git init && git checkout -b "gh-pages" && git add . && git commit -m "chore: deploy docs site" && git remote add origin https://github.com/nx-dotnet/nx-dotnet && git push -f --set-upstream origin gh-pages', {cwd: path, stdio: 'inherit'})
6+
execSync('git init ', {cwd: path, stdio: 'inherit'})
7+
execSync('git checkout -b "gh-pages"', {cwd: path, stdio: 'inherit'})
8+
execSync('git add . && git commit -m "chore: deploy docs site"', {cwd: path, stdio: 'inherit'})
9+
execSync(`git remote add origin https://github-actions:${process.env.GITHUB_TOKEN}@github.com/nx-dotnet/nx-dotnet`, {cwd: path, stdio: 'inherit'})
10+
execSync('git push -f --set-upstream origin gh-pages', {cwd: path, stdio: 'inherit'})
711
}

0 commit comments

Comments
 (0)