Przeglądaj źródła

ci(linux): keep extensions node_modules [skip ci]

Baptiste Augrain 1 rok temu
rodzic
commit
f4759fb36a

+ 2 - 2
.github/workflows/insider-linux.yml

@@ -103,8 +103,8 @@ jobs:
 
       - name: Compress vscode artifact
         run: |
-          find vscode -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt
-          find vscode/.build/extensions/node_modules -type f >> vscode.txt
+          find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt
+          echo "vscode/.build/extensions/node_modules" >> vscode.txt
           echo "vscode/.git" >> vscode.txt
           tar -czf vscode.tar.gz -T vscode.txt
 

+ 4 - 1
.github/workflows/stable-linux.yml

@@ -107,7 +107,10 @@ jobs:
 
       - name: Compress vscode artifact
         run: |
-          tar -cz --exclude='.build/node' --exclude='**/node_modules' -f vscode.tar.gz vscode
+          find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt
+          echo "vscode/.build/extensions/node_modules" >> vscode.txt
+          echo "vscode/.git" >> vscode.txt
+          tar -czf vscode.tar.gz -T vscode.txt
 
       - name: Upload vscode artifact
         uses: actions/upload-artifact@v3