fix: condition wether or not to display checkboxes #58
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 | |
on: | |
push: | |
branches: [ main ] | |
defaults: | |
run: | |
working-directory: 'kontan-server' | |
jobs: | |
build-and-install: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies, build and copy output dir | |
run: | | |
npm install | |
npm run build | |
cp -r dist ~/kontan/kontan-server | |
- name: Restart and run | |
run: | | |
echo "export PATH="$(npm config get prefix)"/bin/node:$PATH" > ~/kontan/kontan-server/startProd.sh | |
{ echo "cd /home/kontan/kontan/kontan-server"; echo "npm run serve:prod"; } >> ~/kontan/kontan-server/startProd.sh | |
echo "sudo killall ngrok" > ~/kontan/kontan-server/startProd.tunnel.sh | |
echo "ngrok http --config=$HOME/.config/ngrok/ngrok.yml --subdomain=kontan localhost:3000 --log=stdout > /var/log/ngrok.prod.log" >> ~/kontan/kontan-server/startProd.tunnel.sh | |
sudo supervisorctl restart kontan:* |