-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.17 KB
/
build.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
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Check out code
uses: actions/checkout@v3
- name: "[Server] Setup .NET"
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: "[Server] Restore dependencies"
run: dotnet restore
- name: "[Server] Build"
run: dotnet build --no-restore
- name: "[Client] Build rtfx-builder-base Docker Image"
run: docker build .devcontainer -t rtfx-builder-base
working-directory: ./src/Client
- name: "[Client] Build rtfx-builder Docker Image"
run: docker build -f build/Dockerfile . -t rtfx-builder
working-directory: ./src/Client
- name: "[Client] Copy Electron Build to Host"
run: docker cp $(docker create rtfx-builder):/work-dir/app/bundle ./electron-dist
- name: "[Client] Upload Artifact"
uses: actions/upload-artifact@v3
with:
name: electron-dist
path: |
electron-dist/rtfx*.exe
electron-dist/rtfx*.snap
electron-dist/rtfx*.AppImage
retention-days: 5
if-no-files-found: error