Skip to content

Commit 1aa84c5

Browse files
authored
Add logic to the workflow to build the docs zip (#420)
* Update the workflows to build docs on Linux * Update build_linux.yml * Update build_linux.yml * Update build_package.py * Move exclusion logic to workflow
1 parent db4a6ba commit 1aa84c5

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/build_linux.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,32 @@ jobs:
120120
shell: bash
121121
run: |
122122
# TODO add handling cmake_extras
123-
python scripts/build_scripts/build_zips.py --platform=linux --use_boringssl=true --unity_root=$UNITY_ROOT_DIR --apis=${{ inputs.apis }}
123+
python scripts/build_scripts/build_zips.py --platform=linux --use_boringssl=true --unity_root=$UNITY_ROOT_DIR --apis=${{ inputs.apis }} --gen_documentation_zip
124124
125-
- name: Check zip file
125+
- name: Check zip files
126126
shell: bash
127127
run: |
128-
if [ -f linux_unity/*.zip ]; then
128+
if [ -f linux_unity/*Linux.zip ]; then
129129
echo "linux_unity zip created."
130130
else
131131
echo "Fail to create linux_unity zip."
132132
exit 1
133133
fi
134+
if [ -f linux_unity/documentation_sources.zip ]; then
135+
echo "documentation_sources zip created."
136+
else
137+
echo "Fail to create documentation_sources zip."
138+
exit 1
139+
fi
134140
135141
- name: Upload Build
136142
uses: actions/upload-artifact@v2
137143
with:
138144
name: linux_unity
139-
path: linux_unity/*.zip
145+
path: linux_unity/*Linux.zip
146+
147+
- name: Upload Documentation Sources
148+
uses: actions/upload-artifact@v2
149+
with:
150+
name: documentation_sources
151+
path: linux_unity/documentation_sources.zip

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
- name: move zip files
124124
run: |
125125
cd built_artifact
126-
find . -type f -name "*.zip" -exec mv {} . \;
126+
find . -type f \( -name "*.zip" ! -name "documentation_sources*" \) -exec mv {} . \;
127127
find . -empty -type d -delete
128128
ls -lR
129129
for zip_file in *.zip

0 commit comments

Comments
 (0)