Обновление сборки для Linux
This commit is contained in:
@@ -20,34 +20,8 @@ jobs:
|
|||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
|
|
||||||
# Кэш npm (тарифы грузятся из ~/.npm-cache на macOS)
|
|
||||||
- name: Cache npm cache
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ${{ env.HOME }}/.npm-cache
|
|
||||||
key: ${{ runner.os }}-npm-linux-${{ hashFiles('**/package.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-npm-linux-
|
|
||||||
if-no-files-found: ignore
|
|
||||||
# Кэш для electron-builder
|
|
||||||
- name: Cache electron-builder
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
${{ env.HOME }}/Library/Caches/electron-builder
|
|
||||||
${{ env.HOME }}/Library/Caches/electron
|
|
||||||
key: ${{ runner.os }}-electron-linux-builder-${{ hashFiles('**/electron-builder.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-electron-linux-builder-
|
|
||||||
if-no-files-found: ignore
|
|
||||||
- name: NPM offline setup
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
npm config set cache "$HOME/.npm-cache" --global
|
|
||||||
npm config set prefer-offline true --global
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm install --prefer-offline --no-audit --no-fund
|
run: npm install --no-audit --no-fund
|
||||||
- name: Build the application
|
- name: Build the application
|
||||||
run: npm run kernel:linux
|
run: npm run kernel:linux
|
||||||
#Загружаем на удаленный сервер по SSH используя scp и пароль из секретов
|
#Загружаем на удаленный сервер по SSH используя scp и пароль из секретов
|
||||||
|
|||||||
Reference in New Issue
Block a user