Deploy using GitHub Actions
Run our build script from github action such as code release
Create SiteGround SSH Key for GitHub Action
Create Github Action
name: deploy to SiteGround
on:
release:
types: [published, edited]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: gukm1051.siteground.biz
username: u1119-ahcvzbcli3ee
key: ${{ secrets.DEPLOY_RSA_PRIVATE }}
passphrase: ${{ secrets.DEPLOY_RSA_PASSWORD}}
port: 18765
script: |
cd ~/www/marks364.sg-host.com
./build.shLast updated