Skip to content

Commit d720896

Browse files
authored
chore(docs): update docsDeploy.yml (#6045)
1 parent d354bd1 commit d720896

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

Diff for: .github/workflows/docsDeploy.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ jobs:
1919
- uses: actions/checkout@v3
2020
with:
2121
ref: demo
22-
- name: Checkout private repo
23-
uses: actions/checkout@v3
24-
with:
25-
repository: akveo/ngx-admin
26-
token: ${{ secrets.GH_PAT }}
27-
- name: Deploy to GH pages
28-
uses: nicoinch/[email protected]
29-
env:
30-
GH_PAT: ${{ secrets.GH_PAT }}
31-
- run: |
32-
npm install --silent
22+
- name: Install dependencies
23+
run: npm install --silent
24+
- name: Build project
25+
run: |
3326
git config --global user.email "[email protected]"
3427
git config --global user.name "Github Action"
3528
npm run docs:gh-pages
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GH_PAT }}
33+
publish_dir: ./docs/dist

Diff for: docs/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ if (environment.production) {
1515
}
1616

1717
platformBrowserDynamic().bootstrapModule(AppModule);
18+

Diff for: scripts/docs/build-docs.ts

-6
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ export interface Version {
4242

4343
log(`Adding versions.json to ${OUT_DIR}`);
4444
await outputFile(join(OUT_DIR, 'versions.json'), jsonConfig);
45-
46-
log(`Deploying to ghpages`);
47-
await deploy(OUT_DIR);
48-
49-
log(`Cleaning up working directory (${WORK_DIR})`);
50-
await remove(WORK_DIR);
5145
}());
5246

5347
function ensureSingleCurrentVersion(versions: Version[]) {

0 commit comments

Comments
 (0)