Skip to content

ADD additional logs when checking auth-cards #54

ADD additional logs when checking auth-cards

ADD additional logs when checking auth-cards #54

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Build and Deploy
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo 🚧
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- run: cd ./frontend && npm ci
- run: cd ./frontend && npm run build --if-present
- run: mkdir ./backend/client
- run: cp -r ./frontend/dist/* ./backend/client/
- name: rsync deployment 🚀
uses: burnett01/[email protected]
with:
switches: -avzr --delete --exclude="config.ini"
path: backend/
remote_path: roseguarden/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_key: ${{ secrets.DEPLOY_KEY }}
- name: pip install on server 🦾
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
port: ${{ secrets.DEPLOY_PORT }}
script: |
supervisorctl stop roseguarden
cd roseguarden/
pip install -r requirements.txt
python3 -m flask db upgrade
supervisorctl start roseguarden