mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-10 10:23:52 +02:00
* Update github_actions.yml actions/checkout@v2 is deprecated * Update github_actions.yml updated microsoft/setup-msbuild
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: VRCX
|
|
|
|
on:
|
|
- workflow_dispatch
|
|
|
|
jobs:
|
|
build_dotnet:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Nuget.exe
|
|
uses: nuget/setup-nuget@v1
|
|
- name: Restore packages
|
|
run: nuget restore VRCX.sln
|
|
- name: Setup MSBuild.exe
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
- name: Build with MSBuild
|
|
run: msbuild VRCX.sln -p:Configuration=Release -p:Platform=x64
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: vrcx
|
|
path: bin/x64/Release
|
|
|
|
build_node:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: html
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Restore dependencies
|
|
run: npm ci
|
|
- name: Lint
|
|
run: npm run lint
|
|
- name: Build
|
|
run: npm run production
|
|
- name: Fix folder structure
|
|
id: fix-folders
|
|
run: |
|
|
mkdir upload
|
|
mv dist upload/html
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: vrcx
|
|
path: html/upload
|