second svg fix #30
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 to Server | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Update keys | |
run: | | |
ssh-keygen -R ${{ secrets.SERVER_IP }} | |
- name: Copy files via SCP | |
env: | |
SSHPASS: ${{ secrets.ROOT_SSH_PASSWORD }} | |
run: | | |
sshpass -e scp -o StrictHostKeyChecking=no -r ./* root@${{ secrets.SERVER_IP }}:/root/eldraxis | |
- name: Execute remote commands | |
env: | |
SSHPASS: ${{ secrets.ROOT_SSH_PASSWORD }} | |
run: | | |
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ secrets.SERVER_IP }} << 'EOF' | |
cd /root/eldraxis | |
systemctl stop eldraxis | |
npx prisma db push | |
npm run build | |
systemctl start eldraxis | |
EOF |