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 ae3fe2d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ 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: a-was/scp-action@v1
with:
host: ${{ secrets.REMOTE_HOST }}
port: ${{ secrets.REMOTE_PORT }}
user: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.ACCESS_TOKEN }}
source: dist/*
destination: ${{ secrets.TARGET }}

0 comments on commit ae3fe2d

Please sign in to comment.