18 lines
494 B
YAML
18 lines
494 B
YAML
name: Pull changes and deploy API
|
|
on: [push]
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Executing remote command
|
|
uses: appleboy/ssh-action@v1.0.0
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
port: ${{ secrets.PORT }}
|
|
script: |
|
|
cd ${{ secrets.APP_FOLDER }} && git pull
|
|
supervisorctl restart ${{ secrets.SUPERVISOR_SERVICE_NAME }}
|