Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 5, 2023
1 parent 4b5aacb commit b809e64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ jobs:
- uses: taiga-family/ci/actions/setup/[email protected]
- 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/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
Expand Down
13 changes: 13 additions & 0 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit b809e64

Please sign in to comment.