1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-11-19 16:39:20 +02:00

CI: Fix cask artifact upload

[why]
The casks-artifact is empty.

[how]
Supply the correct path for the upload.
For this the generator script prints the output pathname(s),
which in turn are used in the CI.

Also drop unneeded '/' from path end.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2022-08-30 10:18:42 +02:00
parent de9bb5b9bf
commit 6c2d3ec752
2 changed files with 8 additions and 3 deletions

View File

@ -198,9 +198,12 @@ jobs:
- name: Generate cask - name: Generate cask
# The casks are not used at the moment, but probably Ryan # The casks are not used at the moment, but probably Ryan
# wanted to push them out somewhere # wanted to push them out somewhere
id: cask_generate
run: | run: |
cd -- "$GITHUB_WORKSPACE/bin/scripts" cd -- "$GITHUB_WORKSPACE/bin/scripts"
./generate-casks.sh "${{ matrix.font }}" gen=$(./generate-casks.sh "${{ matrix.font }}")
echo $gen
echo ::set-output name=path::$(echo "$gen" | grep '^## Created' | sed -E 's/.*: +//')
- name: Upload zip file archive for release - name: Upload zip file archive for release
uses: softprops/action-gh-release@v0.1.14 uses: softprops/action-gh-release@v0.1.14
@ -228,7 +231,7 @@ jobs:
# adding multiple paths (i.e. LICENSE) is a workaround to get a least common ancestor # adding multiple paths (i.e. LICENSE) is a workaround to get a least common ancestor
# of the root directory for artifact path purposes # of the root directory for artifact path purposes
path: | path: |
casks/${{ matrix.font }} ${{ steps.cask_generate.outputs.path }}
LICENSE LICENSE
release-font-patcher: release-font-patcher:

View File

@ -106,7 +106,7 @@ do
FONTS=("${FONTS[@]}" "$file") FONTS=("${FONTS[@]}" "$file")
done < <(find "$searchdir" -type f -iwholename '*complete*' \( -iname '*.[o,t]tf' ! -wholename '*Windows*' ! -iname '*complete mono*' \) -print0) done < <(find "$searchdir" -type f -iwholename '*complete*' \( -iname '*.[o,t]tf' ! -wholename '*Windows*' ! -iname '*complete mono*' \) -print0)
outputdir=$PWD/../casks/ outputdir=$PWD/../casks
formattedbasename=$(echo "$basename" | tr "[:upper:]" "[:lower:]") formattedbasename=$(echo "$basename" | tr "[:upper:]" "[:lower:]")
@ -131,5 +131,7 @@ do
write_footer "$to" write_footer "$to"
write_footer "$to_mono" write_footer "$to_mono"
echo "## Created casks: ${outputdir}/${caskname}*.rb"
done done