Adding issue tracker as metadata item of interest #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |