61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# schedule:
|
|
# - cron: '0 10 * * *'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt-get install -y python3-paramiko python3-lxml
|
|
- uses: actions/checkout@v3.6.0
|
|
with:
|
|
submodules: 'recursive'
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v3.2.0
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
- name: Build Runner
|
|
run: dotnet build Nebula.Runner --configuration Release
|
|
- name: Build Launcher
|
|
run: dotnet build Nebula.Launcher --configuration Release
|
|
- name: Publish Launcher
|
|
run: dotnet publish Nebula.Launcher --configuration Release -r win-x64 --output ./NebulaLauncher/bin
|
|
- name: Run script creating
|
|
uses: DamianReeves/write-file-action@master
|
|
with:
|
|
path: ./NebulaLauncher/NebulaStart.bat
|
|
contents: |
|
|
@echo off
|
|
cd ./bin
|
|
echo "You can close that windows. I already start a spessman porn!"
|
|
start Nebula.Launcher.exe
|
|
write-mode: append
|
|
- name: Run with log script creating
|
|
uses: DamianReeves/write-file-action@master
|
|
with:
|
|
path: ./NebulaLauncher/NebulaStartLog.bat
|
|
contents: |
|
|
@echo off
|
|
dotnet ./bin/Nebula.Launcher.dll
|
|
write-mode: append
|
|
- name: Create Release dir
|
|
run: mkdir ./Release/
|
|
- name: ZIP Release
|
|
uses: montudor/action-zip@v1
|
|
with:
|
|
args: zip -qq -r ./Release/NebulaLauncher.zip ./NebulaLauncher
|
|
- name: FTP Deploy Release
|
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
|
with:
|
|
server: ${{ secrets.FTP_SERVER }}
|
|
username: ${{ secrets.FTP_USERNAME }}
|
|
password: ${{ secrets.FTP_PASSWORD }}
|
|
local-dir: ./Release/
|
|
server-dir: ./release/
|