Skip to content

Merge pull request #2 from AlexanderMelde/dependabot/npm_and_yarn/cry… #55

Merge pull request #2 from AlexanderMelde/dependabot/npm_and_yarn/cry…

Merge pull request #2 from AlexanderMelde/dependabot/npm_and_yarn/cry… #55

Workflow file for this run

name: Build and Deploy to Github Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js and NPM
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies
run: npm install
- name: Build App
run: npm run build-gh
- name: Copy App Index to 404
run: cp ./dist/fortis/index.html ./dist/fortis/404.html
- name: Build Storybook
run: npm run build-storybook
- name: Build Storybook Docs
run: npm run build-storybook-docs
- name: Build Compodoc Docs
run: npm run docs:build
- name: Run Tests
run: npm run test-silent
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/