tracking data.json #31
This file contains 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
on: | |
push: | |
branches: | |
- main | |
workflow_run: | |
workflows: ["run-tests.yml"] | |
types: | |
- completed | |
name: deploy | |
jobs: | |
build: | |
name: Run Deploy Script 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 byte-server | |
pm2 stop server.ts | |
git pull | |
bun install | |
pm2 start server.ts |