deploy #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: deploy to staging | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.STAGING_HOST }} | |
username: staging | |
key: ${{ secrets.STAGING_PRIVATE_KEY }} | |
port: 22 | |
script: "cd /var/www/dodavpn.com; git pull origin main; composer dump-autoload; php artisan optimize:clear; php artisan migrate; php artisan optimize" | |