Просмотр исходного кода

feat: include .env file in build artifacts for all platforms

cheng zhen 1 год назад
Родитель
Сommit
24c4492342
1 измененных файлов с 12 добавлено и 4 удалено
  1. 12 4
      .github/workflows/build.yml

+ 12 - 4
.github/workflows/build.yml

@@ -37,7 +37,9 @@ jobs:
       uses: actions/upload-artifact@v4
       with:
         name: CursorPro-Windows
-        path: dist/CursorPro.exe
+        path: |
+          dist/CursorPro.exe
+          dist/.env
 
   build-macos-arm64:
     runs-on: macos-latest
@@ -68,7 +70,9 @@ jobs:
       uses: actions/upload-artifact@v4
       with:
         name: CursorPro-MacOS-ARM64
-        path: dist/CursorPro
+        path: |
+          dist/CursorPro
+          dist/.env
 
   build-linux:
     runs-on: ubuntu-22.04
@@ -99,7 +103,9 @@ jobs:
       uses: actions/upload-artifact@v4
       with:
         name: CursorPro-Linux
-        path: dist/CursorPro
+        path: |
+          dist/CursorPro
+          dist/.env
 
   build-macos-intel:
     runs-on: macos-latest
@@ -136,7 +142,9 @@ jobs:
       uses: actions/upload-artifact@v4
       with:
         name: CursorPro-MacOS-Intel
-        path: dist/CursorPro
+        path: |
+          dist/CursorPro
+          dist/.env
 
   create-release:
     needs: [build-windows, build-macos-arm64, build-linux, build-macos-intel]