aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/upload-to-drive.yml
blob: 86dd69d837c88a16ec727a4b6eaeaa4367faacd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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"