From 380c29fb3d735776e9e41e0082c8cfb5588e72ed Mon Sep 17 00:00:00 2001 From: roisantos <62201385+roisantos@users.noreply.github.com> Date: Thu, 14 Oct 2021 01:10:23 +0200 Subject: [PATCH 1/8] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...static-web-apps-salmon-cliff-0772d8003.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml diff --git a/.github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml b/.github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml new file mode 100644 index 0000000..25ce651 --- /dev/null +++ b/.github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml @@ -0,0 +1,45 @@ +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@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_SALMON_CLIFF_0772D8003 }} + 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" # 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_SALMON_CLIFF_0772D8003 }} + action: "close" From 4bbebbaa0bed674fdeeb3188a9abb1e27b17f862 Mon Sep 17 00:00:00 2001 From: roisantos <62201385+roisantos@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:19:54 +0100 Subject: [PATCH 2/8] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...e-static-web-apps-calm-coast-05ebd7203.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml diff --git a/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml b/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml new file mode 100644 index 0000000..3b58601 --- /dev/null +++ b/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml @@ -0,0 +1,45 @@ +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@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_CALM_COAST_05EBD7203 }} + 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" # 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_CALM_COAST_05EBD7203 }} + action: "close" From 4c6ecea4453e74ce9dedb95b906e34656fbff037 Mon Sep 17 00:00:00 2001 From: Roi Santos Date: Wed, 1 Dec 2021 12:22:27 +0100 Subject: [PATCH 3/8] salmonout --- ...static-web-apps-salmon-cliff-0772d8003.yml | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml diff --git a/.github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml b/.github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml deleted file mode 100644 index 25ce651..0000000 --- a/.github/workflows/azure-static-web-apps-salmon-cliff-0772d8003.yml +++ /dev/null @@ -1,45 +0,0 @@ -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@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_SALMON_CLIFF_0772D8003 }} - 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" # 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_SALMON_CLIFF_0772D8003 }} - action: "close" From 01b950cccd156079b4904f35d83b0dd214a14d7e Mon Sep 17 00:00:00 2001 From: Roi Santos Date: Wed, 1 Dec 2021 12:38:33 +0100 Subject: [PATCH 4/8] nuevo From b924e03e5a9bb128e191bebba67a01fd3e44915e Mon Sep 17 00:00:00 2001 From: Roi Santos Date: Wed, 1 Dec 2021 12:41:56 +0100 Subject: [PATCH 5/8] fixedCalmCoast --- .github/workflows/sample-github-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sample-github-workflow.yml b/.github/workflows/sample-github-workflow.yml index 879b36d..c5e1451 100644 --- a/.github/workflows/sample-github-workflow.yml +++ b/.github/workflows/sample-github-workflow.yml @@ -44,5 +44,5 @@ jobs: id: closepullrequest uses: Azure/static-web-apps-deploy@v0.0.1-preview with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RANDOM_NAME_HERE }} + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_CALM_COAST_05EBD7203 }} action: "close" From fd4460e639dd02f33019c02b686689c4e1214aac Mon Sep 17 00:00:00 2001 From: Roi Santos Date: Wed, 1 Dec 2021 13:19:03 +0100 Subject: [PATCH 6/8] calm coast --- .github/workflows/sample-github-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sample-github-workflow.yml b/.github/workflows/sample-github-workflow.yml index c5e1451..7ecc62b 100644 --- a/.github/workflows/sample-github-workflow.yml +++ b/.github/workflows/sample-github-workflow.yml @@ -22,7 +22,7 @@ jobs: id: builddeploy uses: Azure/static-web-apps-deploy@v0.0.1-preview with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RANDOM_NAME_HERE }} + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_CALM_COAST_05EBD7203 }} 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 you app requirements. ###### From d564da738003a270cbc3ed7551a5dc989fb7418b Mon Sep 17 00:00:00 2001 From: Roi Santos Date: Wed, 1 Dec 2021 13:44:17 +0100 Subject: [PATCH 7/8] added env --- .../workflows/azure-static-web-apps-calm-coast-05ebd7203.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml b/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml index 3b58601..c5d7fd4 100644 --- a/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml +++ b/.github/workflows/azure-static-web-apps-calm-coast-05ebd7203.yml @@ -31,6 +31,9 @@ jobs: api_location: "api" # Api source code path - optional output_location: "build" # Built app content directory - optional ###### End of Repository/Build Configurations ###### + env: + REACT_APP_COMPUTERVISIONENDPOINT: ${{secrets.REACT_APP_COMPUTERVISIONENDPOINT}} + REACT_APP_COMPUTERVISIONKEY: ${{secrets.REACT_APP_COMPUTERVISIONKEY}} close_pull_request_job: if: github.event_name == 'pull_request' && github.event.action == 'closed' From 8a2915c7bcbc0581bea82afa271423fddc0b5058 Mon Sep 17 00:00:00 2001 From: Roi Santos Date: Wed, 1 Dec 2021 15:06:35 +0100 Subject: [PATCH 8/8] fix --- src/azure-cognitiveservices-computervision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cognitiveservices-computervision.js b/src/azure-cognitiveservices-computervision.js index 5398d64..6aef9a0 100644 --- a/src/azure-cognitiveservices-computervision.js +++ b/src/azure-cognitiveservices-computervision.js @@ -1,5 +1,5 @@ // ./src/azure-cognitiveservices-computervision.js - +// probando // Azure SDK client libraries import { ComputerVisionClient } from '@azure/cognitiveservices-computervision'; import { ApiKeyCredentials } from '@azure/ms-rest-js';