Skip to content

Commit f4e7d1b

Browse files
authored
Create build-and-publish-inferpage.yml
1 parent 70a5cf8 commit f4e7d1b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Publish MaIN.InferPage
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v4
17+
with:
18+
dotnet-version: '8.0.x'
19+
20+
- name: Restore dependencies
21+
run: dotnet restore MaIN.InferPage
22+
23+
- name: Build project
24+
run: dotnet build MaIN.InferPage --configuration Release --no-restore
25+
26+
- name: Publish project
27+
run: dotnet publish MaIN.InferPage --configuration Release --output ./publish --no-build
28+
29+
- name: Upload build artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: main-inferpage-build
33+
path: ./publish/

0 commit comments

Comments
 (0)