Skip to content

Merge pull request #4 from Aisen60/0.2.2 #17

Merge pull request #4 from Aisen60/0.2.2

Merge pull request #4 from Aisen60/0.2.2 #17

name: Deploy site by main branch to server
on:
workflow_dispatch:
push:
branches: [main]
jobs:
main-branch-deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd /opt/cxs/vue3-h5-template
git pull origin main
pnpm install
npm run build:deploy