aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-05-13 10:40:20 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-05-13 11:00:25 +0530
commit784b72486f692217365922b12c3f4f5db91c84a3 (patch)
tree211ce569e7a5142e610f3ac0d4f439d6efc89a01 /.github
parentb604cb63c8b4a28e4c31708460463ea492cf696e (diff)
downloadbanglar-bhumi-utils-784b72486f692217365922b12c3f4f5db91c84a3.tar.gz
banglar-bhumi-utils-784b72486f692217365922b12c3f4f5db91c84a3.zip
Added github action to auto-upload build to google drive
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/upload-to-drive.yml42
1 files changed, 42 insertions, 0 deletions
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"