Explorar el Código

ci: another try

Tienson Qin hace 4 años
padre
commit
f24211de00
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      .github/workflows/build-desktop-release.yml

+ 9 - 2
.github/workflows/build-desktop-release.yml

@@ -155,12 +155,19 @@ jobs:
         run: yarn run postinstall
         run: yarn run postinstall
         working-directory: ./static/node_modules/dugite/
         working-directory: ./static/node_modules/dugite/
 
 
+      - name: Add Windows certificate
+        id: write_file
+        uses: timheuer/base64-to-file@v1
+        with:
+          fileName: ~/cert
+          encodedString: ${{ secrets.WIN_CSC_LINK }}
+
       - name: Build/Release Electron app
       - name: Build/Release Electron app
         run: yarn electron:make
         run: yarn electron:make
         working-directory: ./static
         working-directory: ./static
         env:
         env:
-          WIN_CSC_LINK: ${{ secrets.CSC_LINK }}
-          WIN_CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
+          WIN_CSC_LINK: ~/cert
+          WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
 
 
       - name: Change Artifact Name
       - name: Change Artifact Name
         run: Get-ChildItem  static\out\make\squirrel.windows\x64\*.exe | Rename-Item -NewName Logseq-win64.exe
         run: Get-ChildItem  static\out\make\squirrel.windows\x64\*.exe | Rename-Item -NewName Logseq-win64.exe