Created
May 7, 2020 22:44
-
-
Save artistro08/b7677551c54fe60e2f80f9f21ee72063 to your computer and use it in GitHub Desktop.
Automatic Deployment using Github Actions & appleboy/ssh
This file contains hidden or 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 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