From 29856346abb59265fad98f71db3c8b5e406f90b1 Mon Sep 17 00:00:00 2001 From: Denny Date: Fri, 13 Oct 2023 10:43:26 +0530 Subject: [PATCH] feat: add manual workflow for building extension --- .../workflows/build-extension-manually.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-extension-manually.yml diff --git a/.github/workflows/build-extension-manually.yml b/.github/workflows/build-extension-manually.yml new file mode 100644 index 00000000..63fccfe0 --- /dev/null +++ b/.github/workflows/build-extension-manually.yml @@ -0,0 +1,33 @@ +name: "Build Extension Manually" + +on: workflow_dispatch + +jobs: + chrome-publish: + name: "Build For Manual Testing" + runs-on: "ubuntu-latest" + + steps: + - name: "Checkout Development Branch" + uses: actions/checkout@v4 + with: + ref: main + + - name: "Build and Test" + run: | + cd browser-extension/plugin + ls + pwd + npm install + npm run build + mv dist/ extension-chrome/ + npm run build:firefox + mv dist/ extension-firefox/ + + - name: "Upload dist folder as artifact" + uses: actions/upload-artifact@v3 + with: + name: extension-artifacts + path: | + browser-extension/plugin/extension-firefox/ + browser-extension/plugin/extension-chrome/