From 81cea3de001f1d1bff12d0279a94e3be36ea452e Mon Sep 17 00:00:00 2001 From: Zachdidit Date: Sat, 21 Sep 2024 17:37:16 -0700 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b307660..1295fc2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,19 +10,16 @@ on: jobs: deployment: runs-on: ubuntu-latest - environment: production - steps: - - name: deploy - runs-on: ubuntu-latest + environment: production steps: - name: Deploying to AWS - uses: appleboy/ssh-action@master # An action made to control Linux servers - with: # We set all our secrets here for the action, these won't be shown in the action logs + uses: appleboy/ssh-action@master # An action made to control Linux servers + with: # We set all our secrets here for the action, these won't be shown in the action logs host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} - run: | + script: | cd ${{ secrets.APPDIR }} git pull # we pull any changes from git npm prune # we remove any unused dependencies