-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.11 KB
/
Copy pathdeploy-linux.yml
File metadata and controls
52 lines (40 loc) · 1.11 KB
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
49
50
51
52
name: Deploy on Linux
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Install .NET Dependencies
run: dotnet restore ./server/server.sln
- name: Build .NET
run: dotnet build --configuration Release ./server/server.sln
- name: Publish .NET
run: dotnet publish ./server/app/app.csproj -c Release -o ./webapp
- name: Upload .NET Web App
uses: actions/upload-artifact@v4
with:
name: back-end
path: webapp/*
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: Install Node.js Dependencies
working-directory: ./client
run: npm install
- name: Build Vue Web App
working-directory: ./client
run: npm run build
- name: Upload Vue Web App
uses: actions/upload-artifact@v4
with:
name: front-end
path: client/dist/*