From 4f77eb9d772c2e0b8b9168a4ac600ccbcb77285d Mon Sep 17 00:00:00 2001 From: Louis <6723574+louisgv@users.noreply.github.com> Date: Wed, 16 Feb 2022 04:32:37 -0400 Subject: [PATCH] Adding submit github action --- .github/workflows/submit.yaml | 28 ++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/submit.yaml diff --git a/.github/workflows/submit.yaml b/.github/workflows/submit.yaml new file mode 100644 index 000000000..d1b5be632 --- /dev/null +++ b/.github/workflows/submit.yaml @@ -0,0 +1,28 @@ +name: "submit" +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.1.2 + with: + node-version: '14' + - name: Restore npm cache + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies + run: npm install + - name: Build package + run: npm run build + - name: Browser Plugin Publish + uses: plasmo-corp/bpp@v1 + with: + artifact: ./build/webextension.zip + keys: ${{ secrets.SUBMIT_KEYS }} diff --git a/.gitignore b/.gitignore index 5b49393b5..1bbe41985 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ tags.* .idea /nbproject/private/ src/out.json + +keys.json \ No newline at end of file