Skip to content

fix: exclude undefined routes #46

fix: exclude undefined routes

fix: exclude undefined routes #46

Workflow file for this run

name: deploy
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
env:
SSH_SECRET: ${{ secrets.SSH_SECRET }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_ADDR: ${{ secrets.SSH_ADDR }}
SSH_PORT: ${{ secrets.SSH_PORT }}
steps:
- uses: actions/checkout@v2
- name: SSH Deploy
run: |
echo "${SSH_SECRET}" > ./secret_key
ssh-keyscan -p ${SSH_PORT} -H ${SSH_ADDR} > known_hosts
chmod 600 secret_key
ssh ${SSH_USER}@${SSH_ADDR} -p ${SSH_PORT} -o UserKnownHostsFile=./known_hosts -i ./secret_key \
"cd ~/repos/frontend && \
git checkout . && \
git pull && \
. ~/.nvm/nvm.sh && \
nvm exec 14.17.6 npm install --production && \
nvm exec 14.17.6 npm run generate"