Skip to content

Merge remote-tracking branch 'refs/remotes/origin/main' #14

Merge remote-tracking branch 'refs/remotes/origin/main'

Merge remote-tracking branch 'refs/remotes/origin/main' #14

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: './table-component/package-lock.json'
- name: Install dependencies and build
working-directory: ./table-component
run: |
npm ci
npm run build
- name: Prepare for deployment
run: |
mkdir -p gh-pages/css gh-pages/js
cp index.html gh-pages/
cp table-component/dist/css/app*.css gh-pages/css/app.css
cp table-component/dist/css/chunk-vendors*.css gh-pages/css/chunk-vendors.css
cp table-component/dist/js/app*.js gh-pages/js/app.js
cp table-component/dist/js/chunk-vendors*.js gh-pages/js/chunk-vendors.js
touch gh-pages/.nojekyll
- name: Deploy documentation.
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
force: true
folder: gh-pages