-
-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (29 loc) · 1.23 KB
/
windows-web.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
# Workflow based on https://github.com/joncloud/makensis-action-test/blob/publish/.github/workflows/main.yml
name: SlimeVR Windows Web Installer
on: [ push, pull_request ]
jobs:
build:
runs-on: windows-latest
env:
# The directory of the web installer project
WINDOWS_WEB_DIR: ${{ github.workspace }}/windows/web
PLUGINS_DIR: ${{ github.workspace }}/NSIS_Plugins
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Create plugins directory for NSIS
run: mkdir -p "${PLUGINS_DIR}" | cp -rl "${WINDOWS_WEB_DIR}/plugins"/*/* "${PLUGINS_DIR}/"
shell: bash
- name: Create NSIS installer
uses: joncloud/makensis-action@v4
with:
script-file: ${{ env.WINDOWS_WEB_DIR }}/slimevr_web_installer.nsi
additional-plugin-paths: ${{ env.PLUGINS_DIR }}
- name: Upload the installer as a build artifact
uses: actions/upload-artifact@v2
with:
# Artifact name
name: "slimevr_web_installer" # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: ${{ env.WINDOWS_WEB_DIR }}/slimevr_web_installer.exe