Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Oct 16, 2023
2 parents 53861c4 + 16f2826 commit 7092198
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/publish-onewarestudio-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy OneWare Web Studio

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Workload Restore
run: dotnet workload restore
- name: Publish
run: dotnet publish ./demo/OneWare.Demo.Browser/OneWare.Demo.Browser.csproj -c Release -o ./out
- uses: actions/upload-artifact@v3
with:
name: oneware-web-build
path: out

deploy:
permissions:
contents: write
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: oneware-web-build
path: webapp

- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: w01e537f.kasserver.com
username: w01e537f
password: ${{ secrets.ONEWARE_STUDIO_FTP }}
local-dir: webapp/AppBundle/
server-dir: demo.oneware.studio/
1 change: 1 addition & 0 deletions demo/OneWare.Demo.Browser/OneWare.Demo.Browser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<InvariantGlobalization>true</InvariantGlobalization>
<EmccCompileOptimizationFlag>-O2</EmccCompileOptimizationFlag>
<EmccLinkOptimizationFlag>-O2</EmccLinkOptimizationFlag>
<EmccInitialHeapSize>32mb</EmccInitialHeapSize>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7092198

Please sign in to comment.