Skip to content

Commit

Permalink
Rework deployment pipelines to get Blazor Client deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
russdaygh committed Apr 21, 2024
1 parent 66ae37d commit c6406ff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 128 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
name: Azure Static Web Apps CI/CD
name: Build and deploy Pocket DDD Blazor Client

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
environment: dev
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
Expand All @@ -22,7 +17,7 @@ jobs:
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_FLOWER_068AD3503 }}
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
Expand All @@ -31,15 +26,3 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_FLOWER_068AD3503 }}
action: "close"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and deploy Pocket DDD Server to Web App PocketDDDServerWebAPI2024
name: Build and deploy Pocket DDD Server
on:
workflow_dispatch:
push:
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/azure-static-web-apps-ashy-wave-054da7003.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/azure-static-web-apps-happy-tree-038f26503.yml

This file was deleted.

0 comments on commit c6406ff

Please sign in to comment.