From d7468a4f456ac123f6b4885350aafc788445feb7 Mon Sep 17 00:00:00 2001 From: vishalgr Date: Fri, 26 Mar 2021 11:05:39 +0530 Subject: [PATCH 1/6] PMT --- .github/workflows/assigned-pulls-todo.yml | 15 +++++++++++++++ .github/workflows/linter.yml | 2 +- .github/workflows/opened-issues-triage.yml | 15 +++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/assigned-pulls-todo.yml create mode 100644 .github/workflows/opened-issues-triage.yml diff --git a/.github/workflows/assigned-pulls-todo.yml b/.github/workflows/assigned-pulls-todo.yml new file mode 100644 index 0000000..58d0984 --- /dev/null +++ b/.github/workflows/assigned-pulls-todo.yml @@ -0,0 +1,15 @@ +name: Move assigned pull requests into To do + +on: + pull_request: + types: [assigned] + +jobs: + automate-project-columns: + runs-on: ubuntu-latest + steps: + - uses: alex-page/github-project-automation-plus@v0.3.0 + with: + project: Backlog + column: To do + repo-token: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 9dde5a5..c1f19f8 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -52,4 +52,4 @@ jobs: env: VALIDATE_ALL_CODEBASE: false DEFAULT_BRANCH: master - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file diff --git a/.github/workflows/opened-issues-triage.yml b/.github/workflows/opened-issues-triage.yml new file mode 100644 index 0000000..171d457 --- /dev/null +++ b/.github/workflows/opened-issues-triage.yml @@ -0,0 +1,15 @@ +name: Move new issues into Triage + +on: + issues: + types: [opened] + +jobs: + automate-project-columns: + runs-on: ubuntu-latest + steps: + - uses: alex-page/github-project-automation-plus@v0.3.0 + with: + project: Backlog + column: Triage + repo-token: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file From 5888ed29dfb14193aaa9c65f3cd6973947c7915c Mon Sep 17 00:00:00 2001 From: vishalgr Date: Fri, 26 Mar 2021 11:20:23 +0530 Subject: [PATCH 2/6] automate Kanban boards activated --- .github/workflows/assigned-pulls-todo.yml | 15 --------------- .github/workflows/opened-issues-triage.yml | 15 --------------- 2 files changed, 30 deletions(-) delete mode 100644 .github/workflows/assigned-pulls-todo.yml delete mode 100644 .github/workflows/opened-issues-triage.yml diff --git a/.github/workflows/assigned-pulls-todo.yml b/.github/workflows/assigned-pulls-todo.yml deleted file mode 100644 index 58d0984..0000000 --- a/.github/workflows/assigned-pulls-todo.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Move assigned pull requests into To do - -on: - pull_request: - types: [assigned] - -jobs: - automate-project-columns: - runs-on: ubuntu-latest - steps: - - uses: alex-page/github-project-automation-plus@v0.3.0 - with: - project: Backlog - column: To do - repo-token: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file diff --git a/.github/workflows/opened-issues-triage.yml b/.github/workflows/opened-issues-triage.yml deleted file mode 100644 index 171d457..0000000 --- a/.github/workflows/opened-issues-triage.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Move new issues into Triage - -on: - issues: - types: [opened] - -jobs: - automate-project-columns: - runs-on: ubuntu-latest - steps: - - uses: alex-page/github-project-automation-plus@v0.3.0 - with: - project: Backlog - column: Triage - repo-token: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file From 42971d4775b02e0c80eaf84992d28993021ccacb Mon Sep 17 00:00:00 2001 From: vishalgr Date: Fri, 26 Mar 2021 11:58:05 +0530 Subject: [PATCH 3/6] new pro --- .github/workflows/assigned-pulls-todo.yml | 15 +++++++++++++++ .github/workflows/opened-issues-triage.yml | 0 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/assigned-pulls-todo.yml create mode 100644 .github/workflows/opened-issues-triage.yml diff --git a/.github/workflows/assigned-pulls-todo.yml b/.github/workflows/assigned-pulls-todo.yml new file mode 100644 index 0000000..58d0984 --- /dev/null +++ b/.github/workflows/assigned-pulls-todo.yml @@ -0,0 +1,15 @@ +name: Move assigned pull requests into To do + +on: + pull_request: + types: [assigned] + +jobs: + automate-project-columns: + runs-on: ubuntu-latest + steps: + - uses: alex-page/github-project-automation-plus@v0.3.0 + with: + project: Backlog + column: To do + repo-token: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file diff --git a/.github/workflows/opened-issues-triage.yml b/.github/workflows/opened-issues-triage.yml new file mode 100644 index 0000000..e69de29 From c48a871699a96973bb66570841ebf00b788c4dd5 Mon Sep 17 00:00:00 2001 From: vishalgr Date: Sun, 28 Mar 2021 22:37:59 +0530 Subject: [PATCH 4/6] deployment stage --- .github/workflows/assigned-pulls-todo.yml | 15 ------- .github/workflows/azure.yml | 50 ++++++++++++++++++++++ .github/workflows/opened-issues-triage.yml | 0 3 files changed, 50 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/assigned-pulls-todo.yml create mode 100644 .github/workflows/azure.yml delete mode 100644 .github/workflows/opened-issues-triage.yml diff --git a/.github/workflows/assigned-pulls-todo.yml b/.github/workflows/assigned-pulls-todo.yml deleted file mode 100644 index 58d0984..0000000 --- a/.github/workflows/assigned-pulls-todo.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Move assigned pull requests into To do - -on: - pull_request: - types: [assigned] - -jobs: - automate-project-columns: - runs-on: ubuntu-latest - steps: - - uses: alex-page/github-project-automation-plus@v0.3.0 - with: - project: Backlog - column: To do - repo-token: ${{ secrets.TOKEN_GITHUB }} \ No newline at end of file diff --git a/.github/workflows/azure.yml b/.github/workflows/azure.yml new file mode 100644 index 0000000..145cda8 --- /dev/null +++ b/.github/workflows/azure.yml @@ -0,0 +1,50 @@ +# This workflow will build and push a node.js application to an Azure Web App when a release is created. +# +# This workflow assumes you have already created the target Azure App Service web app. +# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan +# +# To configure this workflow: +# +# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app **before downloading the file**. +# For more instructions see: https://docs.microsoft.com/azure/app-service/configure-common#configure-app-settings +# +# 2. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. +# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret +# +# 3. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). +# +# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions +# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples +on: + release: + types: [created] + +env: + AZURE_WEBAPP_NAME: NoeJsTest # set this to your application's name + AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root + NODE_VERSION: '14.x' # set this to the node version to use + +jobs: + build-and-deploy: + name: Build and Deploy + runs-on: ubuntu-latest + environment: production + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v1 + with: + node-version: ${{ env.NODE_VERSION }} + - name: npm install, build, and test + run: | + # Build and test the project, then + # deploy to Azure Web App. + npm install + npm run build --if-present + npm run test --if-present + - name: 'Deploy to Azure WebApp' + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} \ No newline at end of file diff --git a/.github/workflows/opened-issues-triage.yml b/.github/workflows/opened-issues-triage.yml deleted file mode 100644 index e69de29..0000000 From 4e516850bb81694e0e1a3bb354583442f5a21b81 Mon Sep 17 00:00:00 2001 From: vishalgr Date: Sun, 28 Mar 2021 22:38:38 +0530 Subject: [PATCH 5/6] deployment stage --- .github/workflows/azure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure.yml b/.github/workflows/azure.yml index 145cda8..dd1a4a1 100644 --- a/.github/workflows/azure.yml +++ b/.github/workflows/azure.yml @@ -16,8 +16,8 @@ # For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions # For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples on: - release: - types: [created] + pull_request: + types: [opened] env: AZURE_WEBAPP_NAME: NoeJsTest # set this to your application's name From 560a04b1c372b00513d3731360feb5ba17b84c34 Mon Sep 17 00:00:00 2001 From: vishalgr Date: Sun, 28 Mar 2021 22:49:02 +0530 Subject: [PATCH 6/6] deployment stage bonus --- .github/workflows/azure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure.yml b/.github/workflows/azure.yml index dd1a4a1..574849a 100644 --- a/.github/workflows/azure.yml +++ b/.github/workflows/azure.yml @@ -17,7 +17,7 @@ # For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples on: pull_request: - types: [opened] + types: [closed] env: AZURE_WEBAPP_NAME: NoeJsTest # set this to your application's name @@ -28,7 +28,7 @@ jobs: build-and-deploy: name: Build and Deploy runs-on: ubuntu-latest - environment: production + environment: Prod steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ env.NODE_VERSION }}