Skip to content

chore: bump version to v1.2.5 [slidbar] #80

chore: bump version to v1.2.5 [slidbar]

chore: bump version to v1.2.5 [slidbar] #80

Workflow file for this run

name: Deploy Main
on:
push:
branches: [main]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH and deploy
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT || 22 }}
host_key_checking: false
script: |
cd ${{ secrets.MAIN_PATH }}
cp .env /tmp/main.env 2>/dev/null; cp port.txt /tmp/main.port.txt 2>/dev/null
git fetch origin --prune
git checkout main
git reset --hard origin/main
cp /tmp/main.env .env 2>/dev/null; cp /tmp/main.port.txt port.txt 2>/dev/null
npm install
pm2 restart zerohost-dashboard