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 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