chore(docs): update docsDeploy.yml (#6045)

This commit is contained in:
Denis Strigo 2024-09-25 12:09:23 +02:00 committed by GitHub
parent d354bd1e84
commit d720896ba8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 17 deletions

View file

@ -19,17 +19,15 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: demo ref: demo
- name: Checkout private repo - name: Install dependencies
uses: actions/checkout@v3 run: npm install --silent
with: - name: Build project
repository: akveo/ngx-admin run: |
token: ${{ secrets.GH_PAT }}
- name: Deploy to GH pages
uses: nicoinch/ghpages@v3.0.0-alpha-1
env:
GH_PAT: ${{ secrets.GH_PAT }}
- run: |
npm install --silent
git config --global user.email "github-action@akveo.com" git config --global user.email "github-action@akveo.com"
git config --global user.name "Github Action" git config --global user.name "Github Action"
npm run docs:gh-pages 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

View file

@ -15,3 +15,4 @@ if (environment.production) {
} }
platformBrowserDynamic().bootstrapModule(AppModule); platformBrowserDynamic().bootstrapModule(AppModule);

View file

@ -42,12 +42,6 @@ export interface Version {
log(`Adding versions.json to ${OUT_DIR}`); log(`Adding versions.json to ${OUT_DIR}`);
await outputFile(join(OUT_DIR, 'versions.json'), jsonConfig); 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[]) { function ensureSingleCurrentVersion(versions: Version[]) {