-
-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (32 loc) · 1012 Bytes
/
dotnet-publish-gpr.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
name: Publish Dotnet Package (GPR)
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
source-url: https://nuget.pkg.github.com/BattlefieldDuck/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Node.js dependencies
run: npm install
working-directory: XtermBlazor/src
- name: Build Node.js project
run: npm run build
working-directory: XtermBlazor/src
- name: Build .NET project
run: dotnet build XtermBlazor -c Release
- name: Create the package
run: dotnet pack XtermBlazor -c Release
- name: Publish the package to GPR
run: dotnet nuget push XtermBlazor/bin/Release/*.nupkg