Skip to content

Commit

Permalink
删除上传到服务器
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Yirui committed Sep 2, 2024
1 parent a9e20d8 commit 670973e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ jobs:
git-config-email: ${{ secrets.GIT_EMAIL }}
repository-name: Zhang-Yirui/Zhang-Yirui.github.io

- name: SSH Server1 Deploy
uses: kostya-ten/ssh-server-deploy@v4
with:
host: ${{ secrets.SERVER1_HOST }}
port: ${{ secrets.SERVER1_PORT }}
username: ${{ secrets.SERVER1_USERNAME }}
private_key: ${{ secrets.SERVER1_PRIVATE_KEY }}
scp_source: ${{ github.workspace }}/blog/public.tar.gz
scp_target: ${{ secrets.SERVER1_TARGET }}
before_script: |
cd ${{ secrets.SERVER1_TARGET }}
ls -al
after_script: |
nohup tar -xzvf ${{ secrets.SERVER1_TARGET }}/public.tar.gz -C ${{ secrets.SERVER1_TARGET }}/ > ${{ secrets.SERVER1_TARGET }}/nohup.log 2>&1 &
# - name: SSH Server1 Deploy
# uses: kostya-ten/ssh-server-deploy@v4
# with:
# host: ${{ secrets.SERVER1_HOST }}
# port: ${{ secrets.SERVER1_PORT }}
# username: ${{ secrets.SERVER1_USERNAME }}
# private_key: ${{ secrets.SERVER1_PRIVATE_KEY }}
# scp_source: ${{ github.workspace }}/blog/public.tar.gz
# scp_target: ${{ secrets.SERVER1_TARGET }}
# before_script: |
# cd ${{ secrets.SERVER1_TARGET }}
# ls -al
# after_script: |
# nohup tar -xzvf ${{ secrets.SERVER1_TARGET }}/public.tar.gz -C ${{ secrets.SERVER1_TARGET }}/ > ${{ secrets.SERVER1_TARGET }}/nohup.log 2>&1 &

0 comments on commit 670973e

Please sign in to comment.