Skip to content

Commit ed2fecd

Browse files
committed
Apply .gitignore
1 parent d7baff2 commit ed2fecd

File tree

69 files changed

+1804
-9930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1804
-9930
lines changed
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
name: Azure Static Web Apps CI/CD
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
types: [opened, synchronize, reopened, closed]
9-
branches:
10-
- main
11-
12-
jobs:
13-
build_and_deploy_job:
14-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
15-
runs-on: ubuntu-latest
16-
name: Build and Deploy Job
17-
steps:
18-
- uses: actions/checkout@v3
19-
with:
20-
submodules: true
21-
lfs: false
22-
- name: Build And Deploy
23-
id: builddeploy
24-
uses: Azure/static-web-apps-deploy@v1
25-
with:
26-
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_FOREST_0B0A7E103 }}
27-
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
28-
action: "upload"
29-
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
30-
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
31-
app_location: "/" # App source code path
32-
api_location: "" # Api source code path - optional
33-
output_location: "" # Built app content directory - optional
34-
###### End of Repository/Build Configurations ######
35-
36-
close_pull_request_job:
37-
if: github.event_name == 'pull_request' && github.event.action == 'closed'
38-
runs-on: ubuntu-latest
39-
name: Close Pull Request Job
40-
steps:
41-
- name: Close Pull Request
42-
id: closepullrequest
43-
uses: Azure/static-web-apps-deploy@v1
44-
with:
45-
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_FOREST_0B0A7E103 }}
46-
action: "close"
1+
name: Azure Static Web Apps CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened, closed]
9+
branches:
10+
- main
11+
12+
jobs:
13+
build_and_deploy_job:
14+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
15+
runs-on: ubuntu-latest
16+
name: Build and Deploy Job
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
submodules: true
21+
lfs: false
22+
- name: Build And Deploy
23+
id: builddeploy
24+
uses: Azure/static-web-apps-deploy@v1
25+
with:
26+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_FOREST_0B0A7E103 }}
27+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
28+
action: "upload"
29+
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
30+
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
31+
app_location: "/" # App source code path
32+
api_location: "" # Api source code path - optional
33+
output_location: "" # Built app content directory - optional
34+
###### End of Repository/Build Configurations ######
35+
36+
close_pull_request_job:
37+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
38+
runs-on: ubuntu-latest
39+
name: Close Pull Request Job
40+
steps:
41+
- name: Close Pull Request
42+
id: closepullrequest
43+
uses: Azure/static-web-apps-deploy@v1
44+
with:
45+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_FOREST_0B0A7E103 }}
46+
action: "close"

.github/workflows/main_thenormbe.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2-
# More GitHub Actions for Azure: https://github.com/Azure/actions
3-
4-
name: Build and deploy ASP.Net Core app to Azure Web App - theNormBE
5-
6-
on:
7-
push:
8-
branches:
9-
- main
10-
workflow_dispatch:
11-
12-
jobs:
13-
build:
14-
runs-on: windows-latest
15-
16-
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up .NET Core
20-
uses: actions/setup-dotnet@v4
21-
with:
22-
dotnet-version: '8.x'
23-
24-
- name: Build with dotnet
25-
run: dotnet build --configuration Release
26-
27-
- name: dotnet publish
28-
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
29-
30-
- name: Upload artifact for deployment job
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: .net-app
34-
path: ${{env.DOTNET_ROOT}}/myapp
35-
36-
deploy:
37-
runs-on: windows-latest
38-
needs: build
39-
environment:
40-
name: 'Production'
41-
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build and deploy ASP.Net Core app to Azure Web App - theNormBE
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up .NET Core
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '8.x'
23+
24+
- name: Build with dotnet
25+
run: dotnet build --configuration Release
26+
27+
- name: dotnet publish
28+
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
29+
30+
- name: Upload artifact for deployment job
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: .net-app
34+
path: ${{env.DOTNET_ROOT}}/myapp
35+
36+
deploy:
37+
runs-on: windows-latest
38+
needs: build
39+
environment:
40+
name: 'Production'
41+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4242
permissions:
4343
id-token: write #This is required for requesting the JWT
44-
45-
steps:
46-
- name: Download artifact from build job
47-
uses: actions/download-artifact@v4
48-
with:
49-
name: .net-app
44+
45+
steps:
46+
- name: Download artifact from build job
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: .net-app
5050

5151
- name: Login to Azure
5252
uses: azure/login@v2
5353
with:
5454
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CBF9D14B1EA043268D5200610B3C64F1 }}
5555
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_F39AFD91CC2D42729A108B9B43EDE7AF }}
5656
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_88BBAF27F2C44DEB95638361CD081A7C }}
57-
58-
- name: Deploy to Azure Web App
59-
id: deploy-to-webapp
60-
uses: azure/webapps-deploy@v3
61-
with:
62-
app-name: 'theNormBE'
63-
slot-name: 'Production'
64-
package: .
57+
58+
- name: Deploy to Azure Web App
59+
id: deploy-to-webapp
60+
uses: azure/webapps-deploy@v3
61+
with:
62+
app-name: 'theNormBE'
63+
slot-name: 'Production'
64+
package: .
6565

0 commit comments

Comments
 (0)