Adding github action for automated submission and dependabot upkeep (#242)

This commit is contained in:
L
2022-03-05 11:05:40 -05:00
committed by GitHub
parent 4857b2e17a
commit 3044961de3
3 changed files with 57 additions and 1 deletions

27
.github/workflows/automerge.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
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: npm run 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 }}

27
.github/workflows/submit.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Submit
on:
workflow_dispatch:
inputs:
tag:
description: "Release tag to submit, i.e 6.0.4"
required: true
jobs:
submit:
runs-on: ubuntu-latest
steps:
- name: Setup Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: latest
- name: Download Github Release Assets
uses: plasmo-corp/download-release-asset@v1.0.0
with:
tag: ${{ github.event.inputs.tag }}
- name: Browser Plugin Publish
uses: plasmo-corp/bpp@v1
env:
PUPPETEER_EXECUTABLE_PATH: /opt/hostedtoolcache/chromium/latest/x64/chrome
with:
keys: ${{ secrets.SUBMIT_KEYS }}

4
.gitignore vendored
View File

@@ -9,4 +9,6 @@ yarn-error.log
.eslintcache
stats.json
yarn.lock
*.zip
*.zip
keys.json