workflow
This commit is contained in:
37
.gitea/workflows/windows.yaml
Normal file
37
.gitea/workflows/windows.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Build Windows
|
||||
|
||||
#Запускаем только кнопкой "Run workflow" в Actions -> Build Windows
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: Windows
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build the application
|
||||
run: npm run kernel:win
|
||||
|
||||
- name: Upload to SSH using WinSCP Powershell
|
||||
shell: powershell
|
||||
run: |
|
||||
.\sshupload.ps1 -LocalFilePath "dist/builds/win/x64/Rosetta-*.exe" -RemoteFolderPath ${{ secrets.SSH_TARGET_DIR }} -ServerAddress ${{ secrets.SSH_HOST }} -Username ${{ secrets.SSH_USERNAME }} -PasswordParam ${{ secrets.SSH_PASSWORD }}
|
||||
Reference in New Issue
Block a user