Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xixiIBN5100 authored Aug 30, 2024
1 parent 9fdf0be commit d9602d3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,12 @@ jobs:
pnpm build-only
zip -r assets ./dist/**
- name: Test SSH Connection
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.REMOTE_HOST_MAIN }}
username: ${{ secrets.REMOTE_USER_MAIN }}
key: ${{ secrets.DEPLOY_TOKEN_MAIN }}
port: ${{ secrets.PORT }}
script: |
echo "SSH connection successful"
- name: Upload to Deploy Server (Main)
uses: easingthemes/ssh-deploy@v2.0.7
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_TOKEN_MAIN }}
SOURCE: "dist/"
TARGET: "/www/jh-questionnair"
TARGET: "/www/jh-questionnaire"
ARGS: "-avzr --delete"
REMOTE_HOST: ${{ secrets.REMOTE_HOST_MAIN }}
REMOTE_USER: ${{ secrets.REMOTE_USER_MAIN }}
Expand Down

0 comments on commit d9602d3

Please sign in to comment.