For the book updates and community contributions



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

Figure 5:
Edit the YAML file. 
2.
Add the following Publish step below the Test step. The step runs the dotnet publish command 
to publish the web app: 
- name:
Test
run

dotnet test 

no-build 

verbosity normal # <

this is the current bottom line 

name

Publish
run

dotnet publish SimpleFeedReader/SimpleFeedReader.csproj -c Release -o website
3.
This publishes the web app to a folder on the hosted agent. Now you’ll want to 
upload
the site 
as a build artifact that can be deployed to Azure. To complete thi
s activity, you’ll use an existing 
action. 
4.
On the list of actions in the 
Actions Helper
pane on the right, search for artifact. Select on the 
Upload a Build Artifact (By actions) action. 


46 
CHAPTER 3 | Continuous integration and deployment with Azure DevOps 
Figure 6:
Accessing the snippet helper. 
5.
Edit the version to v2.2.2 to display a sample snippet. Select the clipboard icon to copy the 
snippet and paste it into the workflow below the publish step. 
Figure 7:
Copying a snippet. 
6.
Edit the YAML for this step to look as follows: 

name:
Upload a Build Artifact
uses:
 
actions/upload-artifact@v2.2.2
  
with:
name:
website 
path:
SimpleFeedReader/website**
if-no-files-found:
error


47 
CHAPTER 3 | Continuous integration and deployment with Azure DevOps 
7.
Commit the file. 
8.
Once the workflow completes, you’ll see the artifact from the 
Home
tab: 

Download 3,57 Mb.

Do'stlaringiz bilan baham:
1   ...   27   28   29   30   31   32   33   34   ...   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