Skip to content

adding folder to organize deployment and adding new github action #2

adding folder to organize deployment and adding new github action

adding folder to organize deployment and adding new github action #2

on:
push:
branches:
- main
paths:
- deployment/**
name: Update Byte Server Service
jobs:
build:
name: Run Scripts on EC2
runs-on: ubuntu-latest
steps:
- name: Execute pull scripts on EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_HOST }}
username: ${{ secrets.AWS_USERNAME }}
key: ${{ secrets.AWS_KEY }}
script: |
cd /home/ec2-user/byte-server
git pull
update-service