From f3edc1036f5034ecd5b79bbefb30a20c13a13fa6 Mon Sep 17 00:00:00 2001 From: savanmyndro <88382778+savanmyndro@users.noreply.github.com> Date: Wed, 29 Sep 2021 15:20:28 +0530 Subject: [PATCH 1/3] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...ic-web-apps-delightful-river-0deabcc00.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-delightful-river-0deabcc00.yml diff --git a/.github/workflows/azure-static-web-apps-delightful-river-0deabcc00.yml b/.github/workflows/azure-static-web-apps-delightful-river-0deabcc00.yml new file mode 100644 index 0000000000..74154e5b91 --- /dev/null +++ b/.github/workflows/azure-static-web-apps-delightful-river-0deabcc00.yml @@ -0,0 +1,45 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - master + +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_DELIGHTFUL_RIVER_0DEABCC00 }} + 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: "dist" # 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_DELIGHTFUL_RIVER_0DEABCC00 }} + action: "close" From 2e165ab2e543ab765a7dc059d98cd997605ac755 Mon Sep 17 00:00:00 2001 From: savanmyndro <88382778+savanmyndro@users.noreply.github.com> Date: Wed, 29 Sep 2021 18:07:45 +0530 Subject: [PATCH 2/3] Create test.txt --- test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000000..9daeafb986 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +test From fe4b27a5966c294bbbd5180e2f2c9e67f8f266c0 Mon Sep 17 00:00:00 2001 From: savanmyndro <88382778+savanmyndro@users.noreply.github.com> Date: Thu, 30 Sep 2021 11:17:13 +0530 Subject: [PATCH 3/3] Update test.txt --- test.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.txt b/test.txt index 9daeafb986..8d9345f806 100644 --- a/test.txt +++ b/test.txt @@ -1 +1,3 @@ test +hasggfhshkjdf +