Skip to content

fix: fix file compression deployment #362

fix: fix file compression deployment

fix: fix file compression deployment #362

Workflow file for this run

name: DEPLOYMENT
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies
uses: pnpm/action-setup@v2
with:
run_install: true
# 构建
- name: Build
run: pnpm build
- 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