mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
chore(docs): update docsDeploy.yml (#6045)
This commit is contained in:
parent
d354bd1e84
commit
d720896ba8
3 changed files with 10 additions and 17 deletions
20
.github/workflows/docsDeploy.yml
vendored
20
.github/workflows/docsDeploy.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -15,3 +15,4 @@ if (environment.production) {
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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[]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue