From 784b72486f692217365922b12c3f4f5db91c84a3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sat, 13 May 2023 10:40:20 +0530 Subject: Added github action to auto-upload build to google drive --- .github/workflows/upload-to-drive.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/upload-to-drive.yml (limited to '.github/workflows/upload-to-drive.yml') diff --git a/.github/workflows/upload-to-drive.yml b/.github/workflows/upload-to-drive.yml new file mode 100644 index 0000000..86dd69d --- /dev/null +++ b/.github/workflows/upload-to-drive.yml @@ -0,0 +1,42 @@ +name: Upload to drive + +on: + push: + branches: + - master + +jobs: + upload-to-drive: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup node.js + uses: actions/setup-node@v3 + with: + node-version: "16.x" + + - name: Run install + uses: borales/actions-yarn@v4 + with: + cmd: install + + - name: Build production bundle + uses: borales/actions-yarn@v4 + with: + cmd: build + + - name: Make zip + run: | + sudo apt-get update + sudo apt-get install zip + zip -r extension.zip dist/* + + - name: Upload to drive + uses: adityak74/google-drive-upload-git-action@main + with: + filename: extension.zip + name: extension.zip + folderId: ${{ secrets.folderId }} + credentials: ${{ secrets.credentials }} + overwrite: "true" -- cgit v1.2.3