Skip to content

Commit

Permalink
fix: fix file compression deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
boxsnake committed Dec 17, 2023
1 parent 8fd4ea0 commit 157f26a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ jobs:

# 部署
- name: Deploy
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
# 删除服务器上目录里所有文件
# ARGS: '-avz --delete'
# 项目 build 后静态文件位置
SOURCE: './dist/'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.TARGET }}
uses: mdallasanta/[email protected]
with:
host: ${{ secrets.REMOTE_HOST }}
port: ${{ secrets.REMOTE_PORT }}
user: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.ACCESS_TOKEN }}
local: ./dist/
remote: ${{ secrets.TARGET }}
scp_options: -rC -v

0 comments on commit 157f26a

Please sign in to comment.