Deploy #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| windows: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 1 | |
| - name: make dirs | |
| run: | | |
| mkdir plugins | |
| mkdir external\_repos | |
| mkdir scripts\itch_io | |
| - name: fetch procedural geometry plugin | |
| working-directory: plugins | |
| run: | | |
| git.exe clone https://github.com/nem0/lumixengine_procedural_geom.git procedural_geom | |
| - name: fetch shader_editor plugin | |
| working-directory: plugins | |
| run: | | |
| git.exe clone https://github.com/nem0/lumixengine_shader_editor.git shader_editor | |
| - name: fetch maps plugin | |
| working-directory: plugins | |
| run: | | |
| git.exe clone https://github.com/nem0/lumixengine_maps.git maps | |
| - name: fetch marketplace plugin | |
| working-directory: plugins | |
| run: | | |
| git.exe clone https://github.com/nem0/lumixengine_market.git market | |
| - name: download physx | |
| working-directory: external\_repos | |
| run: | | |
| git.exe clone --depth=1 https://github.com/nem0/PhysX.git physx | |
| - name: download Luau | |
| working-directory: external\_repos | |
| run: | | |
| git.exe clone --depth=1 https://github.com/nem0/luau.git luau | |
| - name: make VS project | |
| working-directory: scripts | |
| run: | | |
| ./genie.exe --with-app vs2022 | |
| - name: get butler | |
| working-directory: scripts | |
| run: | | |
| curl -L -o butler.zip https://broth.itch.ovh/butler/windows-amd64/LATEST/archive/default | |
| 7z x butler.zip | |
| - name: build engine | |
| working-directory: scripts | |
| shell: cmd | |
| run: | | |
| "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" tmp/vs2022/LumixEngine.sln /p:Configuration=RelWithDebInfo | |
| - name: Publish Windows version | |
| working-directory: scripts | |
| run: | | |
| copy tmp\vs2022\bin\RelWithDebInfo\studio.exe itch_io\ | |
| copy tmp\vs2022\bin\RelWithDebInfo\app.exe itch_io\ | |
| copy .itch.toml itch_io\ | |
| xcopy /E /Y ..\data itch_io | |
| ./butler.exe push itch_io mikulasflorek/lumix-engine:win | |
| env: | |
| BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: itch-io-dx | |
| path: scripts/itch_io |