Skip to content

Commit

Permalink
Initial GitHub Actions Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminZehowlt committed Nov 14, 2023
1 parent 4c6f4df commit 7e20cf9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 38 deletions.
57 changes: 20 additions & 37 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,34 @@
name: VRCX

on:
- workflow_dispatch
- push
- pull_request

jobs:
build_dotnet:
runs-on: windows-latest
build_vrcx:
runs-on: ubuntu-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/[email protected]
- name: Build with MSBuild
run: msbuild VRCX.sln -p:Configuration=Release -p:Platform=x64
- uses: actions/upload-artifact@v3

- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
name: vrcx
path: bin/x64/Release

build_node:
runs-on: ubuntu-latest
defaults:
run:
working-directory: html
dotnet-version: '8.0.x'

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Setup Node.JS 18
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Restore dependencies
node-version: 18

- name: Restore Node Depedencies
run: npm ci
- name: Lint

- name: JS Lint
run: npm run lint
- name: Build

- name: Build Web UI
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

- name: Build .NET Application
run: dotnet build VRCX -p:Configuration=Release -p:Platform=x64
2 changes: 1 addition & 1 deletion html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7452,7 +7452,7 @@ speechSynthesis.getVoices();
inputPattern: /[\s\S]{1,32}/
}
)
.then(async ({ value }) => {
.then(({ value }) => {
for (let userId in this.loginForm.savedCredentials) {
security
.decrypt(
Expand Down

0 comments on commit 7e20cf9

Please sign in to comment.