Skip to content

Commit c6406ff

Browse files
committed
Rework deployment pipelines to get Blazor Client deployed
1 parent 66ae37d commit c6406ff

4 files changed

Lines changed: 5 additions & 128 deletions

File tree

.github/workflows/azure-static-web-apps-nice-flower-068ad3503.yml renamed to .github/workflows/DeployBlazorClient.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
name: Azure Static Web Apps CI/CD
1+
name: Build and deploy Pocket DDD Blazor Client
22

33
on:
4+
workflow_dispatch:
45
push:
5-
branches:
6-
- main
7-
pull_request:
8-
types: [opened, synchronize, reopened, closed]
9-
branches:
10-
- main
116

127
jobs:
138
build_and_deploy_job:
14-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
159
runs-on: ubuntu-latest
10+
environment: dev
1611
name: Build and Deploy Job
1712
steps:
1813
- uses: actions/checkout@v2
@@ -22,7 +17,7 @@ jobs:
2217
id: builddeploy
2318
uses: Azure/static-web-apps-deploy@v1
2419
with:
25-
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_FLOWER_068AD3503 }}
20+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
2621
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
2722
action: "upload"
2823
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
@@ -31,15 +26,3 @@ jobs:
3126
api_location: "" # Api source code path - optional
3227
output_location: "wwwroot" # Built app content directory - optional
3328
###### End of Repository/Build Configurations ######
34-
35-
close_pull_request_job:
36-
if: github.event_name == 'pull_request' && github.event.action == 'closed'
37-
runs-on: ubuntu-latest
38-
name: Close Pull Request Job
39-
steps:
40-
- name: Close Pull Request
41-
id: closepullrequest
42-
uses: Azure/static-web-apps-deploy@v1
43-
with:
44-
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_FLOWER_068AD3503 }}
45-
action: "close"

.github/workflows/PocketDDDServerWebAPI2024.yml renamed to .github/workflows/DeployServerWebAPI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and deploy Pocket DDD Server to Web App PocketDDDServerWebAPI2024
1+
name: Build and deploy Pocket DDD Server
22
on:
33
workflow_dispatch:
44
push:

.github/workflows/azure-static-web-apps-ashy-wave-054da7003.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/azure-static-web-apps-happy-tree-038f26503.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)