From 4121a0caa4ce23d231a1bf4cc48dd7bc5eb27ba3 Mon Sep 17 00:00:00 2001 From: Eric Jiang Date: Tue, 21 Jan 2020 14:02:08 +1100 Subject: [PATCH] [feat/github-action]: deploy to web store --- .github/workflows/Build-and-Deploy.yml | 2 -- .github/workflows/Deploy-on-Master.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) delete mode 100644 .github/workflows/Build-and-Deploy.yml create mode 100644 .github/workflows/Deploy-on-Master.yml diff --git a/.github/workflows/Build-and-Deploy.yml b/.github/workflows/Build-and-Deploy.yml deleted file mode 100644 index 3a29b89..0000000 --- a/.github/workflows/Build-and-Deploy.yml +++ /dev/null @@ -1,2 +0,0 @@ -- name: Chrome Addon Action - uses: trmcnvn/chrome-addon@v2 diff --git a/.github/workflows/Deploy-on-Master.yml b/.github/workflows/Deploy-on-Master.yml new file mode 100644 index 0000000..0687baf --- /dev/null +++ b/.github/workflows/Deploy-on-Master.yml @@ -0,0 +1,25 @@ +name: Build and Deploy +on: + push: + branches: + - master + +jobs: + build: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Zip Folder + uses: montudor/action-zip@v0.1.0 + with: + args: zip -qq -r ./release.zip ./app + - name: Publish to Web Store + uses: trmcnvn/chrome-addon@v2 + with: + extension: pgkfjobhhfckamidemkddfnnkknomobe + zip: release.zip + client-id: ${{ secrets.CHROME_CLIENT_ID }} + client-secret: ${{ secrets.CHROME_CLIENT_SECRET }} + refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}