diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 83b07a7..5bc9545 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,8 +1,9 @@ name: Build Windows + +#Запускаем только кнопкой "Run workflow" в Actions -> Build Windows on: - push: - branches: - - main + workflow_dispatch: + jobs: build: @@ -15,4 +16,13 @@ jobs: - name: Install npm dependencies run: npm install - name: Build the application - run: npm run kernel:win \ No newline at end of file + run: npm run kernel:win + - name: Upload build on SSH + uses: appleboy/scp-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.SSH_PORT }} + source: "/dist/builds/win/x64/Rosetta-*.exe" + target: ${{ secrets.SSH_TARGET_DIR }} \ No newline at end of file