-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.13 KB
/
deploy.yaml
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
name: Deploy
on:
push:
branches:
- prod
jobs:
Deploy:
runs-on: ubuntu-latest
env:
NuGetApiKey: ${{ secrets.NUGET_API_KEY }}
IsCI: "true"
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install Node dependencies
working-directory: frontend
run: npm ci
- name: Build Vue frontend
working-directory: frontend
run: npm run build:prod
- name: Build the project
working-directory: backend/ResQueue/ResQueue
run: dotnet build --configuration Release
- name: Pack the NuGet package
working-directory: backend/ResQueue/ResQueue
run: dotnet pack --configuration Release
- name: Push the NuGet package
working-directory: backend/ResQueue/ResQueue
run: dotnet nuget push bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://nuget.org