For the book updates and community contributions



Download 3,57 Mb.
Pdf ko'rish
bet32/49
Sana21.08.2022
Hajmi3,57 Mb.
#847402
1   ...   28   29   30   31   32   33   34   35   ...   49
Bog'liq
DevOps-for-ASP.NET-Core-Developers

 
Figure 8:
Viewing artifacts in the summary page. 
Final workflow file 
The final workflow file should look something like this: 
name
:
.NET
on
:
push
:
branches
:
[
main 
]
pull_request
:
branches
:
[
main 
]
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:


48 
CHAPTER 3 | Continuous integration and deployment with Azure DevOps 
-
uses
:
actions/checkout@v2
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v1
with
:
dotnet-version
:
5.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
:
Publish
run
:
dotnet publish SimpleFeedReader/SimpleFeedReader.csproj -c Release -o website
-
name
:
Upload a Build Artifact
uses
:
actions/upload-artifact@v2.2.2
with
:
name
:
website
path
:
SimpleFeedReader/website/**
if-no-files-found
:
error
Deploy a .NET web app using GitHub Actions 
Warning 
Please complete the 
Build
tutorial before starting this lab. 
In this article, you’ll: 

Learn about Environments in GitHub Actions.

Create two environments and specify environment protection rules.

Create environment secrets for managing environment-specific configuration. 

Extend the workflow YAML file to add deployment steps. 

Add a manual dispatch trigger. 

Download 3,57 Mb.

Do'stlaringiz bilan baham:
1   ...   28   29   30   31   32   33   34   35   ...   49




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish