From b809e642ade51becbbeaa40255e61d19e2958fef Mon Sep 17 00:00:00 2001 From: splincode Date: Sun, 5 Nov 2023 17:19:53 +0300 Subject: [PATCH] chore: update --- .github/workflows/deploy.yml | 7 +------ apps/demo/project.json | 13 +++++++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dac94dd1..e1429a63 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,12 +13,7 @@ jobs: - uses: taiga-family/ci/actions/setup/node@v1.36.2 - run: npm run lint - run: npm run prettier -- --check - - run: | - rm -rf dist/demo - npx nx prerender demo - cp dist/demo/index.html dist/demo/404.html - rm -rf dist/demo/server dist/demo/index.original.html - + - run: npx nx build-gh-pages demo - uses: taiga-family/ci/actions/deploy/github-pages@v1.36.2 with: token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/apps/demo/project.json b/apps/demo/project.json index ec4f53fa..6cb3ce52 100644 --- a/apps/demo/project.json +++ b/apps/demo/project.json @@ -66,6 +66,19 @@ } } }, + "build-gh-pages": { + "executor": "nx:run-commands", + "options": { + "parallel": false, + "commands": [ + "rm -rf dist/demo", + "npx nx server demo", + "npx nx prerender demo", + "cp dist/demo/index.html dist/demo/404.html", + "rm -rf dist/demo/server dist/demo/index.original.html" + ] + } + }, "prerender": { "executor": "@nguniversal/builders:prerender", "options": {