Skip to content

Commit 778f87c

Browse files
authored
Update publish.yml : metadata preparation changed, base directory with CSS support added
1 parent 87a7199 commit 778f87c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@ jobs:
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
@@ -51,6 +62,7 @@ jobs:
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

0 commit comments

Comments
 (0)