Skip to content

Commit

Permalink
chore(docs): update docsDeploy.yml (#6045)
Browse files Browse the repository at this point in the history
  • Loading branch information
denStrigo authored Sep 25, 2024
1 parent d354bd1 commit d720896
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/docsDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,15 @@ jobs:
- uses: actions/checkout@v3
with:
ref: demo
- name: Checkout private repo
uses: actions/checkout@v3
with:
repository: akveo/ngx-admin
token: ${{ secrets.GH_PAT }}
- name: Deploy to GH pages
uses: nicoinch/[email protected]
env:
GH_PAT: ${{ secrets.GH_PAT }}
- run: |
npm install --silent
- name: Install dependencies
run: npm install --silent
- name: Build project
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
npm run docs:gh-pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_PAT }}
publish_dir: ./docs/dist
1 change: 1 addition & 0 deletions docs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ if (environment.production) {
}

platformBrowserDynamic().bootstrapModule(AppModule);

6 changes: 0 additions & 6 deletions scripts/docs/build-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ export interface Version {

log(`Adding versions.json to ${OUT_DIR}`);
await outputFile(join(OUT_DIR, 'versions.json'), jsonConfig);

log(`Deploying to ghpages`);
await deploy(OUT_DIR);

log(`Cleaning up working directory (${WORK_DIR})`);
await remove(WORK_DIR);
}());

function ensureSingleCurrentVersion(versions: Version[]) {
Expand Down

0 comments on commit d720896

Please sign in to comment.