Skip to content

Update deploy.yml

Update deploy.yml #6

Workflow file for this run

name: Deploy Headpat
on:
push:
branches: ["uwu"]
pull_request:
branches: ["uwu"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SSH Remote Commands
uses: appleboy/ssh-action@v0.1.5
with:
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_USERNAME }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: |
cd /home/ten/node/headpat
git pull origin uwu
rm -rf dist
mkdir -p dist/html
npm run build
sudo -n systemctl restart headpat