diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 476faae..92c9792 100755 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,19 +15,14 @@ jobs: steps: - uses: actions/checkout@v4 - name: Deploy to Server - run: | - echo "Deploying to server" - echo "host name is : ${{ secrets.REMOTE_HOST }}" - echo "Deployed to server" -# uses: easingthemes/ssh-deploy@main -# with: -# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} -# ARGS: "-rlgoDzvc -i --delete" -# REMOTE_HOST: ${{ secrets.REMOTE_HOST }} -# REMOTE_USER: ${{ secrets.REMOTE_USER }} -# TARGET: ${{ secrets.REMOTE_TARGET }} -# EXCLUDE: "/dist/, /node_modules/, /vendor/, /var/" -# SCRIPT_AFTER: | -# whoami -# ls -al -# echo $RSYNC_STDOUT + uses: easingthemes/ssh-deploy@main + with: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.REMOTE_TARGET }} + EXCLUDE: "/dist/, /node_modules/, /vendor/, /var/" + SCRIPT_AFTER: | + ls -lah + echo $RSYNC_STDOUT