Skip to content

set router for both github deploy and production #784

set router for both github deploy and production

set router for both github deploy and production #784

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install and Build πŸ”§
run: |
cd dashboard
sed -i 's|createWebHistory("/dashboard/")|createWebHistory("/vlinder/")|g' src/router/index.ts
yarn install
yarn build
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dashboard/dist