Skip to content

Commit 9bfe487

Browse files
committed
one yml only
1 parent 9967a5f commit 9bfe487

1 file changed

Lines changed: 64 additions & 64 deletions

File tree

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
22
# More GitHub Actions for Azure: https://github.com/Azure/actions
33

4-
name: Build and deploy ASP.Net Core app to Azure Web App - webappgithub
4+
##name: Build and deploy ASP.Net Core app to Azure Web App - webappgithub
55

6-
on:
7-
push:
8-
branches:
9-
- main
10-
workflow_dispatch:
11-
12-
jobs:
13-
build:
14-
runs-on: windows-latest
15-
permissions:
16-
contents: read #This is required for actions/checkout
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up .NET Core
22-
uses: actions/setup-dotnet@v4
23-
with:
24-
dotnet-version: '8.x'
25-
26-
- name: Build with dotnet
27-
run: dotnet build --configuration Release
28-
29-
- name: dotnet publish
30-
run: dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/myapp"
31-
32-
- name: Upload artifact for deployment job
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: .net-app
36-
path: ${{env.DOTNET_ROOT}}/myapp
37-
38-
deploy:
39-
runs-on: windows-latest
40-
needs: build
41-
environment:
42-
name: 'Production'
43-
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44-
permissions:
45-
id-token: write #This is required for requesting the JWT
46-
contents: read #This is required for actions/checkout
47-
48-
steps:
49-
- name: Download artifact from build job
50-
uses: actions/download-artifact@v4
51-
with:
52-
name: .net-app
53-
54-
- name: Login to Azure
55-
uses: azure/login@v2
56-
with:
57-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_4465D3F6CC204D6A819C7A244211B9CF }}
58-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C357C76245DA42BBAD4B33C8DEAAFCCC }}
59-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_3271B83BF5614C77B80DC84F6E18C4E8 }}
60-
61-
- name: Deploy to Azure Web App
62-
id: deploy-to-webapp
63-
uses: azure/webapps-deploy@v3
64-
with:
65-
app-name: 'webappgithub'
66-
slot-name: 'Production'
67-
package: .
68-
6+
#on:
7+
## push:
8+
# branches:
9+
# - main
10+
# workflow_dispatch:
11+
#
12+
#jobs:
13+
# build:
14+
# runs-on: windows-latest
15+
# permissions:
16+
# contents: read #This is required for actions/checkout
17+
#
18+
# steps:
19+
# - uses: actions/checkout@v4
20+
#
21+
# - name: Set up .NET Core
22+
# uses: actions/setup-dotnet@v4
23+
# with:
24+
# dotnet-version: '8.x'
25+
#
26+
# - name: Build with dotnet
27+
# run: dotnet build --configuration Release
28+
#
29+
# - name: dotnet publish
30+
# run: dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/myapp"
31+
#
32+
# - name: Upload artifact for deployment job
33+
# uses: actions/upload-artifact@v4
34+
# with:
35+
# name: .net-app
36+
# path: ${{env.DOTNET_ROOT}}/myapp
37+
#
38+
# deploy:
39+
# runs-on: windows-latest
40+
# needs: build
41+
# environment:
42+
# name: 'Production'
43+
# url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44+
# permissions:
45+
# id-token: write #This is required for requesting the JWT
46+
# contents: read #This is required for actions/checkout
47+
#
48+
# steps:
49+
# - name: Download artifact from build job
50+
# uses: actions/download-artifact@v4
51+
# with:
52+
# name: .net-app
53+
#
54+
# - name: Login to Azure
55+
# uses: azure/login@v2
56+
# with:
57+
# client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_4465D3F6CC204D6A819C7A244211B9CF }}
58+
# tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C357C76245DA42BBAD4B33C8DEAAFCCC }}
59+
# subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_3271B83BF5614C77B80DC84F6E18C4E8 }}
60+
#
61+
# - name: Deploy to Azure Web App
62+
# id: deploy-to-webapp
63+
# uses: azure/webapps-deploy@v3
64+
# with:
65+
# app-name: 'webappgithub'
66+
# slot-name: 'Production'
67+
# package: .
68+
#

0 commit comments

Comments
 (0)