Merge pull request #42 from brianpooe/feature/gh-pages
Feature/gh pages
This commit is contained in:
commit
904dd303de
1 changed files with 17 additions and 10 deletions
27
.github/workflows/deploy-demo.yml
vendored
27
.github/workflows/deploy-demo.yml
vendored
|
|
@ -3,30 +3,37 @@ name: Deploy demo
|
|||
on: [workflow_dispatch]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: 'pages'
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
concurrency: ci-${{ github.ref }}
|
||||
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 and Build 🔧
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
- 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: Deploy to gh pages 🛫
|
||||
run: npm run deploy:ngx-responsive-table-demo
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue