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:
parent
90c494f05f
commit
1525703973
25
.github/workflows/github.yml
vendored
25
.github/workflows/github.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user