Skip to content

remove old work

remove old work #3

Workflow file for this run

name: Deploy to Server
on:
push:
branches:
- release # Only triggers when you push to this branch
workflow_dispatch: # This enables the manual button
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Execute Remote Commands via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
script: |
cd ${{ secrets.PROJECT_PATH }}
git pull origin release
composer install --no-dev --optimize-autoloader