-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (44 loc) · 1.26 KB
/
publish-onewarestudio-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
38
39
40
41
42
43
44
45
46
47
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 build ./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/