소스 검색

fix: windows release doesn't include git

Tienson Qin 4 년 전
부모
커밋
62bf4034ff
1개의 변경된 파일15개의 추가작업 그리고 7개의 파일을 삭제
  1. 15 7
      .github/workflows/build-desktop-release.yml

+ 15 - 7
.github/workflows/build-desktop-release.yml

@@ -140,15 +140,23 @@ jobs:
         with:
           node-version: 16
 
-      # - name: Cache Node Modules
-      #   uses: actions/cache@v2
-      #   with:
-      #     path: |
-      #       **/node_modules
-      #     key: ${{ runner.os }}-node-modules
+      - name: Cache Node Modules
+        uses: actions/cache@v2
+        with:
+         path: |
+           **/node_modules
+         key: ${{ runner.os }}-node-modules
+
+      - name: Deps Electron app
+        run: yarn install
+        working-directory: ./static
+
+      - name: Fix Deps Electron app
+        run: yarn run postinstall
+        working-directory: ./static/node_modules/dugite/
 
       - name: Build/Release Electron app
-        run: yarn install  && yarn electron:make
+        run: yarn electron:make
         working-directory: ./static
 
       - name: Change Artifact Name