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 5738613
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- name: Checkout
Expand Down Expand Up @@ -39,15 +39,18 @@ jobs:
run: pnpm build

# 部署
- 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 }}
# - name: Test
# run: ls -al ./dist/imgs/manual/batch-selection
# - name: Deploy
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.REMOTE_HOST }}
# port: ${{ secrets.REMOTE_PORT }}
# username: ${{ secrets.REMOTE_USER }}
# key: ${{ secrets.ACCESS_TOKEN }}
# source: dist/
# target: ${{ secrets.TARGET }}
# overwrite: true
# tar_dereference: true
# use_insecure_cipher: true
# strip_components: 1

0 comments on commit 5738613

Please sign in to comment.