From 744ee4c15d08d9206cfbe81bc0202ea3573df183 Mon Sep 17 00:00:00 2001 From: Aatman Date: Wed, 20 Sep 2023 12:39:22 +0530 Subject: [PATCH] deleting chrome and firefox seperate github action files for build PR review --- .github/workflows/build-pr-review-chrome.yml | 51 ------------------- .github/workflows/build-pr-review-firefox.yml | 51 ------------------- 2 files changed, 102 deletions(-) delete mode 100644 .github/workflows/build-pr-review-chrome.yml delete mode 100644 .github/workflows/build-pr-review-firefox.yml diff --git a/.github/workflows/build-pr-review-chrome.yml b/.github/workflows/build-pr-review-chrome.yml deleted file mode 100644 index cc2e76de..00000000 --- a/.github/workflows/build-pr-review-chrome.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: "Build For PR Review - Chrome" - -on: - pull_request: - branches: - - main - -jobs: - chrome-publish: - name: "Build For PR Review" - runs-on: "ubuntu-latest" - - steps: - - name: "Checkout Development Branch" - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.ref }} - - - name: Get commit SHA - shell: bash - run: | - echo "setting variables" - echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - - name: "Build and Test" - run: | - cd browser-extension/plugin - ls - pwd - npm install - npm run build - - - name: "Upload extension.zip as artifact" - uses: actions/upload-artifact@v3 - with: - name: extension-chrome - path: browser-extension/plugin/dist/ - - - name: Create PR Comment with Artifact Link - uses: actions/github-script@v5 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const artifact_url = `https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ github.run_id }}`; - const comment_body = `🛠 Your build files for CHROME are available [here](${artifact_url}).`; - await github.rest.issues.createComment({ - issue_number: context.payload.pull_request.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: comment_body - }); \ No newline at end of file diff --git a/.github/workflows/build-pr-review-firefox.yml b/.github/workflows/build-pr-review-firefox.yml deleted file mode 100644 index 095d92d1..00000000 --- a/.github/workflows/build-pr-review-firefox.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: "Build For PR Review - Firefox" - -on: - pull_request: - branches: - - main - -jobs: - firefox-publish: - name: "Build For PR Review" - runs-on: "ubuntu-latest" - - steps: - - name: "Checkout Development Branch" - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.ref }} - - - name: Get commit SHA - shell: bash - run: | - echo "setting variables" - echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - - name: "Build and Test" - run: | - cd browser-extension/plugin - ls - pwd - npm install - npm run build:firefox - - - name: "Upload extension.zip as artifact" - uses: actions/upload-artifact@v3 - with: - name: extension-firefox - path: browser-extension/plugin/dist/ - - - name: Create PR Comment with Artifact Link - uses: actions/github-script@v5 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const artifact_url = `https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ github.run_id }}`; - const comment_body = `🛠 Your build files for FIREFOX are available [here](${artifact_url}).`; - await github.rest.issues.createComment({ - issue_number: context.payload.pull_request.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: comment_body - }); \ No newline at end of file