From b4479443f3224418707228da7800ce32865af7cb Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Wed, 10 Apr 2024 11:07:03 +0900
Subject: [PATCH 01/11] ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
---
...re-static-web-apps-blue-dune-0c3fd1a0f.yml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 .github/workflows/azure-static-web-apps-blue-dune-0c3fd1a0f.yml
diff --git a/.github/workflows/azure-static-web-apps-blue-dune-0c3fd1a0f.yml b/.github/workflows/azure-static-web-apps-blue-dune-0c3fd1a0f.yml
new file mode 100644
index 0000000..9ed293a
--- /dev/null
+++ b/.github/workflows/azure-static-web-apps-blue-dune-0c3fd1a0f.yml
@@ -0,0 +1,46 @@
+name: Azure Static Web Apps CI/CD
+
+on:
+ 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
+ name: Build and Deploy Job
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ lfs: false
+ - name: Build And Deploy
+ id: builddeploy
+ uses: Azure/static-web-apps-deploy@v1
+ with:
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_DUNE_0C3FD1A0F }}
+ 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. ######
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
+ app_location: "/" # App source code path
+ api_location: "" # Api source code path - optional
+ output_location: "build" # 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_BLUE_DUNE_0C3FD1A0F }}
+ action: "close"
From c69fd52adfa1d2edb4c40b664123b00131df1482 Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Thu, 11 Apr 2024 15:57:28 +0900
Subject: [PATCH 02/11] ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
---
...e-static-web-apps-mango-pond-01c13e00f.yml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 .github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml
diff --git a/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml b/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml
new file mode 100644
index 0000000..86c72a1
--- /dev/null
+++ b/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml
@@ -0,0 +1,46 @@
+name: Azure Static Web Apps CI/CD
+
+on:
+ 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
+ name: Build and Deploy Job
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ lfs: false
+ - name: Build And Deploy
+ id: builddeploy
+ uses: Azure/static-web-apps-deploy@v1
+ with:
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_MANGO_POND_01C13E00F }}
+ 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. ######
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
+ app_location: "/" # App source code path
+ api_location: "" # Api source code path - optional
+ output_location: "build" # 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_MANGO_POND_01C13E00F }}
+ action: "close"
From b3e353177334b5bc7af44751644ae9c318a20053 Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Fri, 12 Apr 2024 13:23:59 +0900
Subject: [PATCH 03/11] Update App.js
---
src/App.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/App.js b/src/App.js
index 241099a..249aa08 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,7 +1,7 @@
import React from 'react';
function App() {
- const value = 'World';
+ const value = 'preview';
return
Hello {value}
;
}
From 7cb0152d0bb84ca20797e500591ad1f17358181b Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Fri, 12 Apr 2024 13:24:20 +0900
Subject: [PATCH 04/11] Update App.js
---
src/App.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/App.js b/src/App.js
index 249aa08..241099a 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,7 +1,7 @@
import React from 'react';
function App() {
- const value = 'preview';
+ const value = 'World';
return Hello {value}
;
}
From 59186652277638d00044d7ae2402d602de4dbc2c Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Fri, 12 Apr 2024 13:47:44 +0900
Subject: [PATCH 05/11] Update azure-static-web-apps-mango-pond-01c13e00f.yml
---
.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml b/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml
index 86c72a1..a92e35c 100644
--- a/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml
+++ b/.github/workflows/azure-static-web-apps-mango-pond-01c13e00f.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
+ - preview
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
From fbf38591a9995dfab503407e0a991f17debabb67 Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Mon, 15 Apr 2024 18:14:31 +0900
Subject: [PATCH 06/11] ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
---
...re-static-web-apps-nice-hill-07af4410f.yml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 .github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
diff --git a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
new file mode 100644
index 0000000..5701cc0
--- /dev/null
+++ b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
@@ -0,0 +1,46 @@
+name: Azure Static Web Apps CI/CD
+
+on:
+ 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
+ name: Build and Deploy Job
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ lfs: false
+ - name: Build And Deploy
+ id: builddeploy
+ uses: Azure/static-web-apps-deploy@v1
+ with:
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_HILL_07AF4410F }}
+ 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. ######
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
+ app_location: "/" # App source code path
+ api_location: "" # Api source code path - optional
+ output_location: "build" # 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_HILL_07AF4410F }}
+ action: "close"
From 3c7b43e1b84dffb385dfd1d3b42d36b6a8dfa724 Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Mon, 15 Apr 2024 19:50:18 +0900
Subject: [PATCH 07/11] Update azure-static-web-apps-nice-hill-07af4410f.yml
---
.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
index 5701cc0..521688f 100644
--- a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
+++ b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
+ - Test
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
@@ -32,6 +33,7 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######
+ prduction_branch: "main"
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
From 3a32d8a0d35330f47b74866aa8c48354aee93cb7 Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Mon, 15 Apr 2024 20:00:01 +0900
Subject: [PATCH 08/11] Update azure-static-web-apps-nice-hill-07af4410f.yml
---
.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
index 521688f..5701cc0 100644
--- a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
+++ b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
@@ -4,7 +4,6 @@ on:
push:
branches:
- main
- - Test
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
@@ -33,7 +32,6 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######
- prduction_branch: "main"
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
From 4a0d4f71350a5e8061e48e4943d93422b8d2eb81 Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Mon, 15 Apr 2024 20:21:34 +0900
Subject: [PATCH 09/11] Update azure-static-web-apps-nice-hill-07af4410f.yml
---
.../workflows/azure-static-web-apps-nice-hill-07af4410f.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
index 5701cc0..5e8552f 100644
--- a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
+++ b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
+ - BranchEnv
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
@@ -32,6 +33,8 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######
+ production_branch: "main"
+ deployment_environment: "NamedEnv"
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
From dc9b7bb30c39716ebb6f8884cd4393ae3d03553e Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Mon, 15 Apr 2024 20:52:17 +0900
Subject: [PATCH 10/11] Update azure-static-web-apps-nice-hill-07af4410f.yml
---
.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
index 5e8552f..dfc8a06 100644
--- a/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
+++ b/.github/workflows/azure-static-web-apps-nice-hill-07af4410f.yml
@@ -34,7 +34,7 @@ jobs:
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######
production_branch: "main"
- deployment_environment: "NamedEnv"
+ deployment_environment: preview
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
From 24dcef4604e2aa4dedfb6c141d7779137270a62a Mon Sep 17 00:00:00 2001
From: Oto Okino <108208574+oto-okino@users.noreply.github.com>
Date: Tue, 5 Nov 2024 14:43:05 +0900
Subject: [PATCH 11/11] ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
---
...tic-web-apps-ambitious-cliff-06234110f.yml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 .github/workflows/azure-static-web-apps-ambitious-cliff-06234110f.yml
diff --git a/.github/workflows/azure-static-web-apps-ambitious-cliff-06234110f.yml b/.github/workflows/azure-static-web-apps-ambitious-cliff-06234110f.yml
new file mode 100644
index 0000000..5a9053c
--- /dev/null
+++ b/.github/workflows/azure-static-web-apps-ambitious-cliff-06234110f.yml
@@ -0,0 +1,46 @@
+name: Azure Static Web Apps CI/CD
+
+on:
+ 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
+ name: Build and Deploy Job
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ lfs: false
+ - name: Build And Deploy
+ id: builddeploy
+ uses: Azure/static-web-apps-deploy@v1
+ with:
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_CLIFF_06234110F }}
+ 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. ######
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
+ app_location: "/" # App source code path
+ api_location: "" # Api source code path - optional
+ output_location: "build" # 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_AMBITIOUS_CLIFF_06234110F }}
+ action: "close"