enhanced build, added upload

هذا الالتزام موجود في:
Chris Ayers
2022-04-06 11:26:47 -07:00
الأصل bed074fece
التزام 14ff4a1066

عرض الملف

@@ -22,9 +22,28 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Set up dependency caching for faster builds
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
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