From eb4d2b9968ee3180de8b1cd9f32370827f885be9 Mon Sep 17 00:00:00 2001 From: deef Date: Mon, 23 Dec 2019 12:06:41 -0600 Subject: [PATCH] Create Github Action to upload to chrome web store on version tagging (#555) * Create Github Action to upload to chrome web store on version tagging --- .github/workflows/chrome-store-upload.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/chrome-store-upload.yaml diff --git a/.github/workflows/chrome-store-upload.yaml b/.github/workflows/chrome-store-upload.yaml new file mode 100644 index 0000000..8343266 --- /dev/null +++ b/.github/workflows/chrome-store-upload.yaml @@ -0,0 +1,29 @@ +name: Upload To Chrome Web Store +# This workflow is triggered on pushes to the repository. +on: + push: + tags: + - v** +jobs: + build: + name: Upload + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v1 + + - name: zip + uses: montudor/action-zip@v0.1.0 + with: + args: zip -r ./vscd.zip * + + - name: Upload to + uses: trmcnvn/chrome-addon@v1 + with: + # extension is only necessary when updating an existing addon, + # omitting it will create a new addon + extension: video-speed-controller + zip: vscd.zip + client-id: ${{ secrets.CHROME_CLIENT_ID }} + client-secret: ${{ secrets.CHROME_CLIENT_SECRET }} + refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}