enhanced build, added upload
هذا الالتزام موجود في:
31
.github/workflows/dotnet.yml
مباع
31
.github/workflows/dotnet.yml
مباع
@@ -22,9 +22,28 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
- name: Restore dependencies
|
- name: Set up dependency caching for faster builds
|
||||||
run: dotnet restore
|
uses: actions/cache@v3
|
||||||
- name: Build
|
with:
|
||||||
run: dotnet build --no-restore
|
path: ~/.nuget/packages
|
||||||
- name: Test
|
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
|
||||||
run: dotnet test --no-build --verbosity normal
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nuget-
|
||||||
|
|
||||||
|
- name: Build with dotnet
|
||||||
|
run: dotnet build --configuration Release
|
||||||
|
|
||||||
|
- name: dotnet publish
|
||||||
|
run: dotnet publish -c Release -o ./webapp
|
||||||
|
|
||||||
|
- name: Upload artifact for deployment job
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: webapp
|
||||||
|
path: ./dotnet-sample/webapp
|
||||||
|
|
||||||
|
- name: Upload artifact for deployment job
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: iac
|
||||||
|
path: ./dotnet-sample/iac
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم