Skip to content

Commit 7c06b0f

Browse files
authored
Merge pull request #64 from wisedev-code/feat/build-and-publish-inferpage
Feat/build and publish inferpage
2 parents 2f4a0b4 + 6f1e571 commit 7c06b0f

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 src/MaIN.InferPage
22+
23+
- name: Build project
24+
run: dotnet build src/MaIN.InferPage --configuration Release --no-restore
25+
26+
- name: Publish project
27+
run: dotnet publish src/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)