File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ permissions :
9+ id-token : write
10+ contents : read
11+
12+ env :
13+ SRC_PROJECT_PATH : ' /webapp01/webapp01.csproj'
14+ AZURE_WEBAPP_PACKAGE_PATH : ' ./src' # set this to the path to your web app project, defaults to the repository root
15+ DOTNET_VERSION : ' 9.0.x' # set this to the dot net version to use
16+
17+ jobs :
18+ ci_build :
19+ name : Build Web App
20+
21+ runs-on : ubuntu-latest
22+
23+ steps :
24+ # Checkout the repo
25+ - uses : actions/checkout@main
26+
27+ # Setup .NET Core SDK
28+ - name : Setup .NET Core
29+ uses : actions/setup-dotnet@v3
30+ with :
31+ dotnet-version : ${{ env.DOTNET_VERSION }}
32+
33+ # Run dotnet build
34+ - name : dotnet build
35+ run : |
36+ dotnet restore ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}${{ env.SRC_PROJECT_PATH }}
37+ dotnet build --configuration Release ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}${{ env.SRC_PROJECT_PATH }}
38+
39+
You can’t perform that action at this time.
0 commit comments