From 67bdfa92f6002c244e14fbc12e9bacb38b234a99 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:01:51 +0530 Subject: [PATCH 01/54] Create main.yml --- .github/workflows/main.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d61eb44 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +name: Deploy website + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Node.js(18.17.1) + uses: actions/setup-node@v3 + with: + node-version: 18.17.1 + + - name: Build website + run: | + yarn install + yarn run build + name: Deployment + + Deploy: + needs: build-and-deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALSS }} + + - name: Upload to blob storage + uses: azure/CLI@v1 + with: + inlineScript: | + az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s . + # Azure logout + - name: logout + run: | + az logout + if: always() From 3154ea556f2fa890698c69e2095bdb2c0f8e003d Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:08:27 +0530 Subject: [PATCH 02/54] Update main.yml --- .github/workflows/main.yml | 55 +++++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d61eb44..cfc98ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,29 +1,52 @@ -name: Deploy website +# Continuous Integration workflow to: +# 1. Build, lint, and test project +# 2. Commit any updates to "dist" folder on: push: - branches: - - main + branches: + - main + pull_request: + +name: Continuous Integration jobs: - build-and-deploy: - name: Build + build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - - name: Install Node.js(18.17.1) - uses: actions/setup-node@v3 + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 with: - node-version: 18.17.1 - - - name: Build website - run: | - yarn install - yarn run build - name: Deployment + node-version: '12' + + - run: npm install + + - run: npm run build + + - run: npm run lint + + - run: npm run test + + - name: Examine changes + run: |- + echo 'FILES_CHANGED<> $GITHUB_ENV + git diff --exit-code dist/index.js >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV + + - name: Update dist + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.FILES_CHANGED }} + uses: swinton/commit@v2.x + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: + dist/index.js + commit-message: Update dist Deploy: - needs: build-and-deploy + needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From 425744855357c6e3e1e3694e1007e8a4924ce15f Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:19:39 +0530 Subject: [PATCH 03/54] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfc98ce..77c6c56 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: - uses: actions/checkout@v3 - uses: azure/login@v1 with: - creds: ${{ secrets.AZURE_CREDENTIALSS }} + creds: ${{ secrets.AZURE_CREDENTIALS }} - name: Upload to blob storage uses: azure/CLI@v1 From f9b508b2d574a2534f7f57a3987d86493d7c4c52 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:21:31 +0530 Subject: [PATCH 04/54] Update main.yml From b3d6196680e840011ab161a880c34f1a10a3bcd6 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:37:23 +0530 Subject: [PATCH 05/54] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77c6c56..5beff44 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: Upload to blob storage - uses: azure/CLI@v1 + uses: Azure/cli@1.0.4 with: inlineScript: | az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s . From a315ef59585ee14cc30bb61e6b6b74fcd57bae82 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:42:46 +0530 Subject: [PATCH 06/54] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5beff44..d453905 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,7 +58,7 @@ jobs: uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s . + az storage blob upload-batch -d '$web' -s --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite . # Azure logout - name: logout run: | From e9b998f09394e16852a4b632f40ef17ef535fb52 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:47:28 +0530 Subject: [PATCH 07/54] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d453905..7f0c963 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,8 +58,8 @@ jobs: uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch -d '$web' -s --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite . - # Azure logout + az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite + # Azure logout - name: logout run: | az logout From 13e6d5fc2fcbd57fbfbc4d1ddfa70b078570550b Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:56:37 +0530 Subject: [PATCH 08/54] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f0c963..8e35a55 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,7 +58,7 @@ jobs: uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite + az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key # Azure logout - name: logout run: | From 104f506fd44e479cb79cb02b1155de7d3e29920e Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:13:08 +0530 Subject: [PATCH 09/54] Update main.yml --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e35a55..af55624 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,7 +58,9 @@ jobs: uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key + whereis az + az storage blob copy --source-container . --source-blob . --destination-container '$web' --destination-blob statichostingwebs + # az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key # Azure logout - name: logout run: | From 4dd25c9c4761144003fc619813c4e782a7433b8d Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:19:10 +0530 Subject: [PATCH 10/54] Update main.yml --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af55624..9ab9c8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,9 +57,8 @@ jobs: - name: Upload to blob storage uses: Azure/cli@1.0.4 with: - inlineScript: | - whereis az - az storage blob copy --source-container . --source-blob . --destination-container '$web' --destination-blob statichostingwebs + inlineScript: + az storage blob copy -s . --destination-container '$web' --destination-blob statichostingwebs # az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key # Azure logout - name: logout From 6143c356e1bc8b577eb86ac11cfb556d6c01df61 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:21:49 +0530 Subject: [PATCH 11/54] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9ab9c8f..90ee680 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,7 @@ # 1. Build, lint, and test project # 2. Commit any updates to "dist" folder + on: push: branches: From 519a3201ea5a5293762ae339d3e93e38bd9dd2c3 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:16:41 +0530 Subject: [PATCH 12/54] Update main.yml --- .github/workflows/main.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90ee680..528df3c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,7 @@ jobs: - run: npm install - run: npm run build + - run: mkdir dist - run: npm run lint @@ -45,7 +46,6 @@ jobs: files: dist/index.js commit-message: Update dist - Deploy: needs: build runs-on: ubuntu-latest @@ -58,10 +58,9 @@ jobs: - name: Upload to blob storage uses: Azure/cli@1.0.4 with: - inlineScript: - az storage blob copy -s . --destination-container '$web' --destination-blob statichostingwebs - # az storage blob upload-batch -d '$web' -s . --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key - # Azure logout + inlineScript: | + az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/ + - name: logout run: | az logout From 5f490021ddf1a8309f8f24c07f9aea4ef41e16a0 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:19:28 +0530 Subject: [PATCH 13/54] Update ci.yml --- .github/workflows/ci.yml | 45 ---------------------------------------- 1 file changed, 45 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18b6b57..8b13789 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,46 +1 @@ -# Continuous Integration workflow to: -# 1. Build, lint, and test project -# 2. Commit any updates to "dist" folder -on: - push: - branches: - - main - pull_request: - -name: Continuous Integration - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-node@v2 - with: - node-version: '12' - - - run: npm install - - - run: npm run build - - - run: npm run lint - - - run: npm run test - - - name: Examine changes - run: |- - echo 'FILES_CHANGED<> $GITHUB_ENV - git diff --exit-code dist/index.js >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV - - - name: Update dist - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.FILES_CHANGED }} - uses: swinton/commit@v2.x - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - files: - dist/index.js - commit-message: Update dist \ No newline at end of file From adff0879ce26311242a9ae99cc2aee30f22a12a6 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:19:50 +0530 Subject: [PATCH 14/54] Update main.yml --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 528df3c..6a4556f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,8 +25,7 @@ jobs: - run: npm install - run: npm run build - - run: mkdir dist - + - run: npm run lint - run: npm run test From 1ef02b18624828697ccfc868549a2a72d39ee930 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:34:54 +0530 Subject: [PATCH 15/54] Update ci.yml --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b13789..1afb8ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1 +1,56 @@ +on: + push: + branches: + - dev + pull_request: + +name: Continuous Integration + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: '12' + + - run: npm install + + - run: npm run build + + - run: npm run lint + + - run: npm run test + + - name: Upload build artifacts to artifact store + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: dist + + Deploy: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Download build artifacts from artifact store + uses: actions/download-artifact@v3 + with: + name: build-artifacts + path: dist + + - name: Upload to blob storage + uses: Azure/cli@1.0.4 + with: + inlineScript: | + az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/ + + - name: logout + run: | + az logout + if: always() From c42fbff721709fd432ed0036981042d9bcf4a563 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:39:57 +0530 Subject: [PATCH 16/54] Update ci.yml --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1afb8ec..2771871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,7 @@ jobs: uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/ - + az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ - name: logout run: | az logout From 5b3484d42d8e979b32b4702a6f3a4aeb241d655f Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:44:41 +0530 Subject: [PATCH 17/54] Update ci.yml --- .github/workflows/ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2771871..7d03d54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,15 @@ - + az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ + + + + steps: + - uses: actions/checkout@v3 + - uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + + on: push: branches: @@ -43,6 +54,12 @@ jobs: with: name: build-artifacts path: dist + + - uses: actions/checkout@v3 + - uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Upload to blob storage uses: Azure/cli@1.0.4 From 9d4f9447e217df372142c2defe4302c8b7f0b472 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:51:16 +0530 Subject: [PATCH 18/54] Update ci.yml --- .github/workflows/ci.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d03d54..a27c3b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,15 +1,3 @@ - az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ - - - - steps: - - uses: actions/checkout@v3 - - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - on: push: branches: @@ -54,18 +42,20 @@ jobs: with: name: build-artifacts path: dist - - - uses: actions/checkout@v3 - - uses: azure/login@v1 - with: + + # Uses the same checkout step from the build job to avoid checking out the repository again + - uses: actions/checkout@v3 + + - uses: azure/login@v1 + with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Upload to blob storage uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ + az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ + - name: logout run: | az logout From 570fbe9df32ec285e2050203e6602f4543ec4eb2 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:55:47 +0530 Subject: [PATCH 19/54] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a27c3b6..b6a7d7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: uses: Azure/cli@1.0.4 with: inlineScript: | - az storage blob upload-batch --account-name statichostingwebs --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ + az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/ - name: logout run: | From 8f3fa4f97de33f9333f29fbbc4a6e953ab3e2a87 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Wed, 11 Oct 2023 21:11:58 +0530 Subject: [PATCH 20/54] Update ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6a7d7f..eb94f4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,9 @@ jobs: with: name: build-artifacts path: dist + -run: pwd + + - run: ls # Uses the same checkout step from the build job to avoid checking out the repository again - uses: actions/checkout@v3 From b375fb13a9317ee38a7ebe38ee8d78f0a7353f30 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:46:40 +0530 Subject: [PATCH 21/54] Update main.yml --- .github/workflows/main.yml | 96 +++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 54 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a4556f..2fd64d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,66 +1,54 @@ -# Continuous Integration workflow to: -# 1. Build, lint, and test project -# 2. Commit any updates to "dist" folder - +name: Build and Deploy on: + workflow_dispatch: push: branches: - - main - pull_request: - -name: Continuous Integration + - dev jobs: - build: + build-and-deploy: runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-node@v2 - with: - node-version: '12' - - - run: npm install - - run: npm run build - - - run: npm run lint - - - run: npm run test - - - name: Examine changes - run: |- - echo 'FILES_CHANGED<> $GITHUB_ENV - git diff --exit-code dist/index.js >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV - - - name: Update dist - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.FILES_CHANGED }} - uses: swinton/commit@v2.x - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - files: - dist/index.js - commit-message: Update dist - Deploy: - needs: build - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: azure/login@v1 - with: + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.16.0 + + - name: Build website + run: | + yarn install + yarn build + + - name: Prepare dist directory + run: | + mkdir dist_temp + mv dist/* dist_temp/ + mv dist_temp dist + shell: bash + + - name: Upload dist directory to artifact store + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: dist + + - name: Download build artifacts from artifact store + uses: actions/download-artifact@v3 + with: + name: build-artifacts + path: dist + + - name: Azure Login + uses: azure/login@v1 + with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Upload to blob storage - uses: Azure/cli@1.0.4 - with: - inlineScript: | - az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/ + - name: Upload to blob storage + run: | + az storage blob upload-batch --account-name staticcontent1 --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/* - - name: logout - run: | - az logout - if: always() + - name: Azure Logout + run: | + az logout From 687560426417c90ef0388c465c2348e30ac58ffd Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:47:05 +0530 Subject: [PATCH 22/54] Rename main.yml to dev.yml --- .github/workflows/{main.yml => dev.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{main.yml => dev.yml} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/dev.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/dev.yml From c16613abade37394797b736fe69fc133882bdefe Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:51:37 +0530 Subject: [PATCH 23/54] Update ci.yml --- .github/workflows/ci.yml | 64 ---------------------------------------- 1 file changed, 64 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb94f4b..8b13789 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,65 +1 @@ -on: - push: - branches: - - dev - pull_request: -name: Continuous Integration - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-node@v2 - with: - node-version: '12' - - - run: npm install - - - run: npm run build - - - run: npm run lint - - - run: npm run test - - - name: Upload build artifacts to artifact store - uses: actions/upload-artifact@v3 - with: - name: build-artifacts - path: dist - - Deploy: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Download build artifacts from artifact store - uses: actions/download-artifact@v3 - with: - name: build-artifacts - path: dist - -run: pwd - - - run: ls - - # Uses the same checkout step from the build job to avoid checking out the repository again - - uses: actions/checkout@v3 - - - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - name: Upload to blob storage - uses: Azure/cli@1.0.4 - with: - inlineScript: | - az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/ - - - name: logout - run: | - az logout - if: always() From aa9acbdbc86e78ac8516bfe216673bbee29829e4 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:52:27 +0530 Subject: [PATCH 24/54] Update publish.yml --- .github/workflows/publish.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3289158..8b13789 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,21 +1 @@ -# Publish workflow to automate semantic tagging after manual release -# Read more here: https://docs.github.com/en/actions/creating-actions/about-actions#using-release-management-for-actions -name: Publish - -on: - release: - types: [published, edited] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ github.event.release.tag_name }} - - - uses: JasonEtco/build-and-tag-action@v2 - env: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file From 7f3324f4405cbdd1389982cb200269a6955a1ef7 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:52:42 +0530 Subject: [PATCH 25/54] Update dev.yml --- .github/workflows/dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 2fd64d1..bc6a658 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -52,3 +52,4 @@ jobs: - name: Azure Logout run: | az logout + From 425503a496b0f31353f6f512f03135d98afaf196 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:54:37 +0530 Subject: [PATCH 26/54] Update dev.yml --- .github/workflows/dev.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index bc6a658..3527e46 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -18,8 +18,10 @@ jobs: - name: Build website run: | - yarn install - yarn build + npm install + npm run build + npm run lint + npm run test - name: Prepare dist directory run: | From f7f811b35547bd1e52cc51152cb5cfa7cd1ce011 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:59:48 +0530 Subject: [PATCH 27/54] Update dev.yml --- .github/workflows/dev.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 3527e46..83e8641 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -17,11 +17,10 @@ jobs: node-version: 18.16.0 - name: Build website - run: | - npm install - npm run build - npm run lint - npm run test + - run: npm install + - run: npm run build + - run: npm run lint + - run: npm run test - name: Prepare dist directory run: | From 09598ca9ed7c00450a062adfd8133a08ec2726d8 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:01:13 +0530 Subject: [PATCH 28/54] Update dev.yml --- .github/workflows/dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 83e8641..69352dc 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -54,3 +54,5 @@ jobs: run: | az logout + + From a92a6a8b50691c742da73af74b19178f07062dff Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:02:27 +0530 Subject: [PATCH 29/54] Update dev.yml --- .github/workflows/dev.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 69352dc..b262143 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -53,6 +53,3 @@ jobs: - name: Azure Logout run: | az logout - - - From 86ac67f5e21eccaf5f23c07081f97b894c90a2e6 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:03:36 +0530 Subject: [PATCH 30/54] Update dev.yml --- .github/workflows/dev.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index b262143..feeffe2 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -18,9 +18,6 @@ jobs: - name: Build website - run: npm install - - run: npm run build - - run: npm run lint - - run: npm run test - name: Prepare dist directory run: | From 86577c5a5732c1b0b5bb7281e10ee1ba8545dde8 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:06:55 +0530 Subject: [PATCH 31/54] Update dev.yml --- .github/workflows/dev.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index feeffe2..f6b88d9 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -17,7 +17,9 @@ jobs: node-version: 18.16.0 - name: Build website - - run: npm install + run: | + npm install + npm build - name: Prepare dist directory run: | From 444c39e9af83d758dd5d0661f4c0bb5a26df53a4 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:09:14 +0530 Subject: [PATCH 32/54] Update dev.yml --- .github/workflows/dev.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f6b88d9..b9c8104 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -9,7 +9,6 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest - steps: - name: Install Node.js uses: actions/setup-node@v3 From caf91313a051308786de9e0374b3a1881ab75e37 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:11:16 +0530 Subject: [PATCH 33/54] Update dev.yml --- .github/workflows/dev.yml | 97 ++++++++++++++++++++++----------------- 1 file changed, 55 insertions(+), 42 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index b9c8104..37f88ed 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,53 +1,66 @@ -name: Build and Deploy +# Continuous Integration workflow to: +# 1. Build, lint, and test project +# 2. Commit any updates to "dist" folder + on: - workflow_dispatch: push: branches: - - dev + - main + pull_request: + +name: Continuous Integration jobs: - build-and-deploy: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: '12' + + - run: npm install + + - run: npm run build + + - run: npm run lint + + - run: npm run test + + - name: Examine changes + run: |- + echo 'FILES_CHANGED<> $GITHUB_ENV + git diff --exit-code dist/index.js >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV + + - name: Update dist + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.FILES_CHANGED }} + uses: swinton/commit@v2.x + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: + dist/index.js + commit-message: Update dist + Deploy: + needs: build runs-on: ubuntu-latest steps: - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 18.16.0 - - - name: Build website - run: | - npm install - npm build - - - name: Prepare dist directory - run: | - mkdir dist_temp - mv dist/* dist_temp/ - mv dist_temp dist - shell: bash - - - name: Upload dist directory to artifact store - uses: actions/upload-artifact@v3 - with: - name: build-artifacts - path: dist - - - name: Download build artifacts from artifact store - uses: actions/download-artifact@v3 - with: - name: build-artifacts - path: dist - - - name: Azure Login - uses: azure/login@v1 - with: + - uses: actions/checkout@v3 + - uses: azure/login@v1 + with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Upload to blob storage - run: | - az storage blob upload-batch --account-name staticcontent1 --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/* + - name: Upload to blob storage + uses: Azure/cli@1.0.4 + with: + inlineScript: | + az storage blob upload-batch --account-name staticcontent1 --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ - - name: Azure Logout - run: | - az logout + - name: logout + run: | + az logout + if: always() From a3a5d260f38e9d4d1fb30b2974b58665c49ee866 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:12:04 +0530 Subject: [PATCH 34/54] Update dev.yml --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 37f88ed..e3e9c1c 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -6,7 +6,7 @@ on: push: branches: - - main + - dev pull_request: name: Continuous Integration From 6cf8b939ad604589ca02e7004a88c3c13845f168 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:26:40 +0530 Subject: [PATCH 35/54] Create index.html --- index.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..b3eee0a --- /dev/null +++ b/index.html @@ -0,0 +1,4 @@ +Hello World +Hello World +Hello World +Hello World From 2a1ae1185de2f8cb836aeaa5114f564fc5f3ef8b Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:43:58 +0530 Subject: [PATCH 36/54] Update dev.yml --- .github/workflows/dev.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index e3e9c1c..fffa4c2 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -60,6 +60,11 @@ jobs: inlineScript: | az storage blob upload-batch --account-name staticcontent1 --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/ + - name: Purge CDN endpoint + uses: azure/CLI@v1 + with: + inlineScript: | + az cdn endpoint purge --content-paths "/*" --profile-name "staticwebsite" --name "staticwebsite123.azureedge.net" --resource-group "tester" - name: logout run: | az logout From 625ee84b90f793912fc22858e9aafa792a1ab445 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:05:28 +0530 Subject: [PATCH 37/54] Update dev.yml --- .github/workflows/dev.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index fffa4c2..07f78e9 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,8 +1,3 @@ -# Continuous Integration workflow to: -# 1. Build, lint, and test project -# 2. Commit any updates to "dist" folder - - on: push: branches: From fe0c84ca55f2611922153d2d6bf25413af70a6cd Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:09:01 +0530 Subject: [PATCH 38/54] Update dev.yml From 9f122831ca7d81c6079801c99e2b2ead46d07106 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:25:56 +0530 Subject: [PATCH 39/54] Update dev.yml --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 07f78e9..35c453e 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -59,7 +59,7 @@ jobs: uses: azure/CLI@v1 with: inlineScript: | - az cdn endpoint purge --content-paths "/*" --profile-name "staticwebsite" --name "staticwebsite123.azureedge.net" --resource-group "tester" + az cdn endpoint purge --content-paths "/*" --profile-name "staticwebsite" --name "staticwebsite123" --resource-group "tester" - name: logout run: | az logout From 0f1a235144e27e6b66c3e216f06dc65f640d076f Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:34:26 +0530 Subject: [PATCH 40/54] Create index.html --- dist/index.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dist/index.html diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..a60ffe5 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,6 @@ +Hello World +Hello World +Hello World +Hello World +Hello World +Hello World From 208b1baee3903fd25a0167b793bf75525786786e Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:51:41 +0530 Subject: [PATCH 41/54] Update dev.yml --- .github/workflows/dev.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 35c453e..3d48975 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,9 +1,8 @@ on: - push: - branches: - - dev - pull_request: - + workflow_dispatch: + push: + branches: + - dev name: Continuous Integration jobs: From 93c94b1b6c3ac5adc3d3a4c9952ea0db3c326c5c Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:53:37 +0530 Subject: [PATCH 42/54] Update dev.yml --- .github/workflows/dev.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 3d48975..31c9da4 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,9 +1,7 @@ +name: Manual Run Workflow with Specific Branch YAML File + on: - workflow_dispatch: - push: - branches: - - dev -name: Continuous Integration + workflow_dispatch: jobs: build: From a3cc9a9a91ccbc1aea39a2655a1f54a68953b378 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:54:46 +0530 Subject: [PATCH 43/54] Update dev.yml --- .github/workflows/dev.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 31c9da4..ea480ad 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,8 +1,5 @@ -name: Manual Run Workflow with Specific Branch YAML File - on: workflow_dispatch: - jobs: build: runs-on: ubuntu-latest From ee2c9dfc672d89a10a5e9d4129c73861ab9244c7 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:58:17 +0530 Subject: [PATCH 44/54] Update dev.yml --- .github/workflows/dev.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index ea480ad..f4c0a13 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,5 +1,8 @@ on: - workflow_dispatch: + workflow_run: + workflows: [Build] + types: [requested] + branches: [production,dev] jobs: build: runs-on: ubuntu-latest From 6e8f3faad61ac5789845291fe8bcc9aa50014872 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:59:38 +0530 Subject: [PATCH 45/54] Update dev.yml --- .github/workflows/dev.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f4c0a13..6d7d4c4 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,8 +1,6 @@ on: workflow_run: - workflows: [Build] - types: [requested] - branches: [production,dev] + branches: [production,dev] jobs: build: runs-on: ubuntu-latest From 36f9b53fcc36c10ca53177f9e433b94bd2fa5263 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:01:07 +0530 Subject: [PATCH 46/54] Update dev.yml --- .github/workflows/dev.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 6d7d4c4..4aea471 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,6 +1,8 @@ on: workflow_run: - branches: [production,dev] + workflows: [main, dev] + types: + - completed jobs: build: runs-on: ubuntu-latest From 752ce813c235a433f7bf9a5c3fe18d67d3d57a8c Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:02:06 +0530 Subject: [PATCH 47/54] Update dev.yml --- .github/workflows/dev.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 4aea471..9418665 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,8 +1,6 @@ on: workflow_run: workflows: [main, dev] - types: - - completed jobs: build: runs-on: ubuntu-latest From 1f4c1c75b4f3ff771151362790567a8e83c1ec14 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:04:07 +0530 Subject: [PATCH 48/54] Update dev.yml --- .github/workflows/dev.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 9418665..274686f 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,6 +1,4 @@ -on: - workflow_run: - workflows: [main, dev] +on: workflow_dispatch jobs: build: runs-on: ubuntu-latest From ec9e94435fbc8e92a1d5840920285a85d6a9ba04 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:10:01 +0530 Subject: [PATCH 49/54] Update dev.yml --- .github/workflows/dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 274686f..30199ec 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,4 +1,5 @@ -on: workflow_dispatch +name: My First Manual Workflow +on: [workflow_dispatch] jobs: build: runs-on: ubuntu-latest From 7d31006f31ab1472516627ef5fa61fe3673c1f26 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:12:49 +0530 Subject: [PATCH 50/54] Update dev.yml --- .github/workflows/dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 30199ec..dc44413 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,5 +1,5 @@ -name: My First Manual Workflow -on: [workflow_dispatch] +on: + workflow_call: jobs: build: runs-on: ubuntu-latest From f55482a526ff55d08002d32fe83011efe9609bd5 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:14:58 +0530 Subject: [PATCH 51/54] Update dev.yml --- .github/workflows/dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index dc44413..7f3385b 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,5 +1,6 @@ +name: Basic Workflow Dispatch Example on: - workflow_call: + workflow_dispatch jobs: build: runs-on: ubuntu-latest From b8edba27e642cc3c7f463dc2dfb69585d788b79f Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:16:54 +0530 Subject: [PATCH 52/54] Update dev.yml From 3c676d2d7ff21ec35bfae985890adb531b7e0cd3 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:20:06 +0530 Subject: [PATCH 53/54] Update dev.yml --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 7f3385b..1977b6b 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,6 +1,6 @@ name: Basic Workflow Dispatch Example on: - workflow_dispatch + workflow_dispatch: jobs: build: runs-on: ubuntu-latest From 13be19b8dac52b8346545c422ae7274001eb6279 Mon Sep 17 00:00:00 2001 From: ankit8389 <147081106+ankit8389@users.noreply.github.com> Date: Fri, 13 Oct 2023 18:06:51 +0530 Subject: [PATCH 54/54] Update dev.yml --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 1977b6b..2057df1 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,4 +1,4 @@ -name: Basic Workflow Dispatch Example +name: tester1 on: workflow_dispatch: jobs: