mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(docs-infra): properly expose the prerendered routes for sitemap generation
Properly expose the prerendered routes for sitemap generation rather than only copying the browser directory
This commit is contained in:
parent
5fb0b80f10
commit
26995e2082
4 changed files with 5 additions and 5 deletions
|
|
@ -23,7 +23,7 @@ export async function deployToFirebase(
|
|||
const config = JSON.parse(await readFile(configPath, {encoding: 'utf-8'})) as {
|
||||
hosting: {public: string};
|
||||
};
|
||||
config['hosting']['public'] = './dist';
|
||||
config['hosting']['public'] = './browser';
|
||||
|
||||
await writeFile(deployConfigPath, JSON.stringify(config, null, 2));
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ async function deployDocs() {
|
|||
const stagingDir = await mkdtemp(join(tmpdir(), 'deploy-directory'));
|
||||
|
||||
// Copy all files from the distDir into stagingDir and modify the permissions for editing
|
||||
await cp(getInput('distDir'), join(stagingDir, 'dist'), {recursive: true});
|
||||
await cp(getInput('distDir'), stagingDir, {recursive: true});
|
||||
spawnSync(`chmod 777 -R ${stagingDir}`, {encoding: 'utf-8', shell: true});
|
||||
|
||||
const deployment = (await getDeployments()).get(currentBranch);
|
||||
|
|
|
|||
4
.github/actions/deploy-docs-site/main.js
vendored
4
.github/actions/deploy-docs-site/main.js
vendored
|
|
@ -33478,7 +33478,7 @@ async function deployToFirebase(deployment, configPath, stagingDir) {
|
|||
console.log("Preparing for deployment to firebase...");
|
||||
const deployConfigPath = join(stagingDir, "firebase.json");
|
||||
const config = JSON.parse(await readFile(configPath, { encoding: "utf-8" }));
|
||||
config["hosting"]["public"] = "./dist";
|
||||
config["hosting"]["public"] = "./browser";
|
||||
await writeFile(deployConfigPath, JSON.stringify(config, null, 2));
|
||||
firebase(`target:clear --config ${deployConfigPath} --project angular-dev-site hosting angular-docs`, stagingDir);
|
||||
firebase(`target:apply --config ${deployConfigPath} --project angular-dev-site hosting angular-docs ${deployment.destination}`, stagingDir);
|
||||
|
|
@ -48236,7 +48236,7 @@ async function deployDocs() {
|
|||
const currentBranch = matchedRef[1];
|
||||
const configPath = (0, import_core3.getInput)("configPath");
|
||||
const stagingDir = await mkdtemp2(join5(tmpdir2(), "deploy-directory"));
|
||||
await cp((0, import_core3.getInput)("distDir"), join5(stagingDir, "dist"), { recursive: true });
|
||||
await cp((0, import_core3.getInput)("distDir"), stagingDir, { recursive: true });
|
||||
spawnSync3(`chmod 777 -R ${stagingDir}`, { encoding: "utf-8", shell: true });
|
||||
const deployment = (await getDeployments()).get(currentBranch);
|
||||
if (deployment === void 0) {
|
||||
|
|
|
|||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -231,7 +231,7 @@ jobs:
|
|||
serviceKey: ${{ secrets.ANGULAR_DEV_SITE_DEPLOY }}
|
||||
githubReleaseTrainReadToken: ${{ secrets.DOCS_DEPLOY_GITHUB_RELEASE_TRAIN_TOKEN }}
|
||||
configPath: 'adev/firebase.json'
|
||||
distDir: 'dist/bin/adev/dist/browser'
|
||||
distDir: 'dist/bin/adev/dist'
|
||||
- name: Update Algolia synonym record
|
||||
run: pnpm tsx adev/scripts/synonyms/update-synonyms.mts
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue