Quellcode durchsuchen

Update github.yml

Gigas002 vor 1 Jahr
Ursprung
Commit
1525703973
1 geänderte Dateien mit 25 neuen und 0 gelöschten Zeilen
  1. 25 0
      .github/workflows/github.yml

+ 25 - 0
.github/workflows/github.yml

@@ -384,3 +384,28 @@ jobs:
         name: ${{ env.VCMI_PACKAGE_FILE_NAME }}
         path: |
           ${{ env.ANDROID_APK_PATH }}
+
+
+  deploy-src:
+    runs-on: ubuntu-latest
+    defaults:
+      run:
+        shell: pwsh
+    steps:
+        - uses: actions/checkout@v4
+          with:
+            submodules: recursive
+            
+        - name: Create source code archive (including submodules)
+          run: |
+            git archive HEAD -o "release.zip" --worktree-attributes -v
+            git submodule update --init --recursive
+            git submodule --quiet foreach 'cd "$toplevel"; zip -ru "release.zip" "$sm_path"'
+            unzip -q release.zip -d ./src
+            
+        - name: Upload source code archive
+          uses: actions/upload-artifact@v4
+          with:
+            name: src
+            path: |
+              ./src