Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save artistro08/b7677551c54fe60e2f80f9f21ee72063 to your computer and use it in GitHub Desktop.
Save artistro08/b7677551c54fe60e2f80f9f21ee72063 to your computer and use it in GitHub Desktop.
Automatic Deployment using Github Actions & appleboy/ssh
name: Deploy Develop
on:
push:
branches:
- develop
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
port: ${{ secrets.PORT }}
script: |
cd sites/dev
git pull
php artisan october:update
php artisan october:up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment