Улучшение CI/CD
This commit is contained in:
@@ -51,24 +51,25 @@ jobs:
|
||||
- name: NPM offline setup
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p dist/builds/darwin/arm64 dist/builds/darwin/x64
|
||||
npm config set cache "$HOME/.npm-cache" --global
|
||||
npm config set prefer-offline true --global
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm install --prefer-offline --no-audit --no-fund
|
||||
|
||||
- name: Build the application (${{ matrix.arch }})
|
||||
- name: Build the application
|
||||
run: |
|
||||
npx electron-vite build
|
||||
npx electron-builder --mac --${{ matrix.arch }}
|
||||
|
||||
- name: Check if files exist (${{ matrix.arch }})
|
||||
- name: Check if files exist
|
||||
run: |
|
||||
echo "=== Checking dist structure ==="
|
||||
find dist/builds/darwin/${{ matrix.arch }} -type f -name "*.pkg" 2>/dev/null || echo "No PKG files found"
|
||||
ls -la dist/builds/darwin/${{ matrix.arch }}/ 2>/dev/null || echo "arch folder not found"
|
||||
|
||||
- name: Upload ${{ matrix.arch }} to SSH using SCP
|
||||
- name: Upload to SSH using SCP
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.SDU_SSH_HOST }}
|
||||
|
||||
Reference in New Issue
Block a user