From 61928a9b8332e10799d4284f93f6381fb9ae7257 Mon Sep 17 00:00:00 2001 From: Louis <6723574+louisgv@users.noreply.github.com> Date: Thu, 24 Feb 2022 06:08:12 -0400 Subject: [PATCH] Adding github action for automated submission and dependabot upkeep --- .github/dependabot.yml | 7 +++++++ .github/workflows/automerge.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/submit.yml | 23 +++++++++++++++++++++++ .gitignore | 3 ++- 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/automerge.yml create mode 100644 .github/workflows/submit.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..1515fc2c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: npm + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 00000000..902def81 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,28 @@ +name: automerge +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "14.x" + + - name: Install dependencies + run: npm install + - name: Build + run: npx gulp build + automerge: + needs: build + runs-on: ubuntu-latest + + permissions: + pull-requests: write + contents: write + + steps: + - uses: fastify/github-action-merge-dependabot@v3.0.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml new file mode 100644 index 00000000..8a693282 --- /dev/null +++ b/.github/workflows/submit.yml @@ -0,0 +1,23 @@ +name: Submit + +on: + workflow_dispatch: + inputs: + tag: + description: "Release tag to submit, i.e 0.4.3" + required: true + +jobs: + submit: + runs-on: ubuntu-latest + steps: + - name: Download Github Release Assets + uses: plasmo-corp/download-release-asset@v1.0.0 + with: + files: Archive-* + tag: ${{ github.event.inputs.tag }} + - name: Browser Plugin Publish + uses: plasmo-corp/bpp@v1 + with: + artifact: "Archive-${{ github.event.inputs.tag }}.zip" + keys: ${{ secrets.SUBMIT_KEYS }} diff --git a/.gitignore b/.gitignore index 1e69dd20..55c2758e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .vscode/ *.zip extra/archives/ -node_modules/ \ No newline at end of file +node_modules/ +keys.json \ No newline at end of file