File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 3535 if : ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[pub]') }}
3636 run : |
3737 echo "::group::Copy _invariant to all language directories, package them"
38+ mkdir -p _output
39+ echo "Base folder for help ..."
40+ FOLDER="_base"
41+ if [ -d "$FOLDER" ] && [ "$(ls -A $FOLDER)" ]; then
42+ cd "$FOLDER"
43+ zip -r -9 ../_output/Help-.zip .
44+ cd ..
45+ else
46+ echo "Directory $FOLDER not exists, skipping ..."
47+ fi
48+ echo "End : Base folder for help"
49+
3850 SRC_DIR="_invariant"
3951 mkdir -p $SRC_DIR
40- mkdir -p _output
4152 echo "::endgroup::"
4253
4354 for dir in */ ; do
5162 echo "Copying language invariant data ..."
5263 cp -r -T -v "$SRC_DIR"/. "$dir"/
5364 cd $dir
65+ echo "_lang|$dir" >> _config.txt
5466 echo "Zipping ..."
5567 zip -r -9 ../_output/Help-$dir.zip .
5668 cd ..
@@ -118,11 +130,11 @@ jobs:
118130 REPO : ${{ github.repository }}
119131 run : |
120132 cd _output
121- echo "$TAG" >> _version .txt
122- echo "$REPO" >> _prjname .txt
133+ echo "_version| $TAG" >> _config .txt
134+ echo "_prjname| $REPO" >> _config .txt
123135
124136 find . -type f -name "*.zip" -print0 | while IFS= read -r -d '' file; do
125137 echo "Language bundle to upload: $file"
126- zip -u "$file" _version.txt _prjname .txt
138+ zip -u "$file" _config .txt
127139 gh release upload "$TAG" "$file" --repo "$REPO" --clobber
128140 done
You can’t perform that action at this time.
0 commit comments