fix: use netlify

This commit is contained in:
Brian Pooe 2023-08-09 12:58:20 +02:00
parent 296742cfba
commit 5f1e44d548
3 changed files with 3 additions and 42 deletions

View file

@ -1,39 +0,0 @@
name: Deploy demo
on: [workflow_dispatch]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Node 🍜
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Deps 🔧
run: npm i --legacy-peer-deps
- name: Build app for production 💥
run: npx nx build ngx-responsive-table-demo -c production
- name: Setup Pages 🔧
uses: actions/configure-pages@v3
- name: Upload artifact 🍜
uses: actions/upload-pages-artifact@v2
with:
path: 'dist/apps/ngx-responsive-table-demo'
- name: Deploy to GitHub Pages 💥
id: deployment
uses: actions/deploy-pages@v2

View file

@ -20,8 +20,7 @@
"apps/ngx-responsive-table-demo/src/assets"
],
"styles": ["apps/ngx-responsive-table-demo/src/styles.scss"],
"scripts": [],
"baseHref": "/devtools-bp/ngx-responsive-table-demo/"
"scripts": []
},
"configurations": {
"production": {

View file

@ -5,7 +5,8 @@
"scripts": {
"start:paystack:demo": "nx serve ns-paystack-demo",
"start:table:demo": "nx serve ngx-responsive-table-demo",
"prepare": "husky install"
"prepare": "husky install",
"deploy:ngx-responsive-table-demo": "npx nx build ngx-responsive-table-demo -c production"
},
"dependencies": {
"@angular/animations": "~16.1.0",