-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (34 loc) · 1.38 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Emscripten Release Build
on:
workflow_dispatch:
push:
branches:
- 'main2'
jobs:
release_web:
name: Web Release
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
token: ${{secrets.PAT}}
- uses: mymindstorm/setup-emsdk@v12
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/Build/Build_EMSDK
- name: Configure CMake
run: cmd.exe /k ${{github.workspace}}/External/libValkyrie/Platform/Emscripten/Generate-Project-Files-GHA.bat
- name: Build
run: cmake --build ${{github.workspace}}/Build/Build_EMSDK --config Release
- name: Create Deployment Directory
run: cmake -E make_directory ${{github.workspace}}/Build/Build_EMSDK/kain2/Deploy/
- name: Copy to Deployment Folder
run: copy ${{github.workspace}}/Build/Build_EMSDK/KAIN2/Game/KAIN2_Web.* ${{github.workspace}}/Build/Build_EMSDK/KAIN2/Deploy/
- name: Deploy to FTP
uses: dennisameling/[email protected]
with:
server: ${{secrets.FTP_SERVER}}
username: ${{secrets.FTP_USER}}
password: ${{secrets.FTP_PASSWORD}}
local_dir: ${{github.workspace}}/Build/Build_EMSDK/kain2/Deploy/
server_dir: ./
secure: false