1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Update github.yml

This commit is contained in:
Gigas002 2024-05-11 02:49:40 +00:00 committed by Ivan Savenko
parent 90c494f05f
commit 1525703973

View File

@ -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