diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 814196a..cb769ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,14 +83,14 @@ jobs: SSH_USER: ${{ secrets.SSH_USER }} SSH_KEY: ${{ secrets.SSH_KEY }} SSH_HOST: ${{ secrets.SSH_HOST }} - - name: Stop the server - run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./stop" - name: Check out source run: ssh deploy-server "cd \"${SCRIPT_PATH}/${REPO_NAME}\" && git fetch && git reset --hard origin/main" env: REPO_NAME: ${{ github.event.repository.name }} - name: Update dependencies & run migrations run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./update" + - name: Stop the server + run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./stop" - name: Start the server if: ${{ always() }} run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./start"