We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d03b67f commit 108b47fCopy full SHA for 108b47f
.github/workflows/build.yaml
@@ -0,0 +1,35 @@
1
+
2
+name: Build and Publish .NET Core App
3
4
+on:
5
+ push:
6
+ branches:
7
+ - main
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Setup .NET
18
+ uses: actions/setup-dotnet@v4
19
+ with:
20
+ dotnet-version: '8.0.x'
21
22
+ - name: Restore dependencies
23
+ run: dotnet restore
24
25
+ - name: Build
26
+ run: dotnet build --configuration Release --no-restore
27
28
+ - name: Publish
29
+ run: dotnet publish --configuration Release --output ./publish
30
31
+ - name: Upload artifact
32
+ uses: actions/upload-artifact@v4
33
34
+ name: published-app
35
+ path: ./publish
0 commit comments