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:
parent
de9bb5b9bf
commit
6c2d3ec752
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -198,9 +198,12 @@ jobs:
|
||||
- name: Generate cask
|
||||
# The casks are not used at the moment, but probably Ryan
|
||||
# wanted to push them out somewhere
|
||||
id: cask_generate
|
||||
run: |
|
||||
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
|
||||
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
|
||||
# of the root directory for artifact path purposes
|
||||
path: |
|
||||
casks/${{ matrix.font }}
|
||||
${{ steps.cask_generate.outputs.path }}
|
||||
LICENSE
|
||||
|
||||
release-font-patcher:
|
||||
|
@ -106,7 +106,7 @@ do
|
||||
FONTS=("${FONTS[@]}" "$file")
|
||||
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:]")
|
||||
|
||||
@ -131,5 +131,7 @@ do
|
||||
write_footer "$to"
|
||||
write_footer "$to_mono"
|
||||
|
||||
echo "## Created casks: ${outputdir}/${caskname}*.rb"
|
||||
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user