Skip to content

Commit

Permalink
fixed gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qingshu-ui committed Sep 25, 2024
1 parent 52ddc74 commit 2ecb79f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
- name: Configure SSH before uploading the file
run: |
sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} \
${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "screen -S client -X quit && \
cd ${{ secrets.SSH_WORK_PATH }} && for file in *.jar; do mv \"$file\" \"$file.bak\"; done"
${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.SSH_WORK_PATH }} \
&& ./stop.sh && ./bak.sh"
- name: SCP Files
run: |
Expand All @@ -46,4 +46,4 @@ jobs:
run: |
sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} \
${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.SSH_WORK_PATH }} \
&& screen -dmS client ./run.sh"
&& ./run.sh"

0 comments on commit 2ecb79f

Please sign in to comment.