From c22ee0822a4883d11f91ea964d3871f2aa9755ac Mon Sep 17 00:00:00 2001 From: "SoorajSR.Pillai" <75423468+mh-spillai@users.noreply.github.com> Date: Mon, 13 Jun 2022 17:39:11 +0530 Subject: [PATCH 1/3] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...-static-web-apps-happy-ocean-08e293d10.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml diff --git a/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml b/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml new file mode 100644 index 0000000000..2d21cd76be --- /dev/null +++ b/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml @@ -0,0 +1,45 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - add-index-page + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - add-index-page + +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@v2 + with: + submodules: true + - 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_HAPPY_OCEAN_08E293D10 }} + 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: "./src" # App source code path + api_location: "" # Api source code path - optional + output_location: "./src" # 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_HAPPY_OCEAN_08E293D10 }} + action: "close" From 190d35d8295fa9618e655ad54160bb1c244a6f04 Mon Sep 17 00:00:00 2001 From: "SoorajSR.Pillai" <75423468+mh-spillai@users.noreply.github.com> Date: Mon, 13 Jun 2022 17:46:30 +0530 Subject: [PATCH 2/3] Update azure-static-web-apps-happy-ocean-08e293d10.yml --- .../workflows/azure-static-web-apps-happy-ocean-08e293d10.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml b/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml index 2d21cd76be..9b829bc4c1 100644 --- a/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml +++ b/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml @@ -29,7 +29,7 @@ jobs: # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig app_location: "./src" # App source code path api_location: "" # Api source code path - optional - output_location: "./src" # Built app content directory - optional + output_location: "" ###### End of Repository/Build Configurations ###### close_pull_request_job: From dcc7ab6204376cc48a9129793cc8a459f72ad5be Mon Sep 17 00:00:00 2001 From: "SoorajSR.Pillai" <75423468+mh-spillai@users.noreply.github.com> Date: Mon, 13 Jun 2022 17:50:39 +0530 Subject: [PATCH 3/3] Delete azure-static-web-apps-happy-ocean-08e293d10.yml --- ...-static-web-apps-happy-ocean-08e293d10.yml | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml diff --git a/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml b/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml deleted file mode 100644 index 9b829bc4c1..0000000000 --- a/.github/workflows/azure-static-web-apps-happy-ocean-08e293d10.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Azure Static Web Apps CI/CD - -on: - push: - branches: - - add-index-page - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - add-index-page - -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@v2 - with: - submodules: true - - 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_HAPPY_OCEAN_08E293D10 }} - 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: "./src" # App source code path - api_location: "" # Api source code path - optional - output_location: "" - ###### 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_HAPPY_OCEAN_08E293D10 }} - action: "close"