mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
chore(docs): update docsDeploy.yml
This commit is contained in:
parent
d354bd1e84
commit
281b8ca754
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
|
||||
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/ghpages@v3.0.0-alpha-1
|
||||
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 "github-action@akveo.com"
|
||||
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
|
||||
|
|
|
|||
|
|
@ -15,3 +15,4 @@ if (environment.production) {
|
|||
}
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||
|
||||
|
|
|
|||
|
|
@ -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[]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue