Skip to content

Create nest.yml

Create nest.yml #1

Workflow file for this run

name: Deploy to Nest
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy and Restart tchat Server on Nest via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ~/tchat
git pull
cd server
go build -o tchat-server main.go || exit 1
systemctl --user restart tchat-server.service || exit 1