mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
ci: upload SVGs to external sites
Can't embed SVGs from GitHub Releases (made an issue that will probably get ignored here https://github.com/orgs/community/discussions/59781). Uploading to external site instead for the time being.
This commit is contained in:
parent
4c9e138cbf
commit
4adad9af49
1 changed files with 4 additions and 7 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -124,17 +124,14 @@ jobs:
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
|
||||||
run: |
|
run: |
|
||||||
# Convert SVGs to PNG
|
|
||||||
INKSCAPE_DIR=inkscape-1.2.2_2022-12-09_732a01da63-x64
|
|
||||||
curl -fLOSs https://inkscape.org/gallery/item/37364/$INKSCAPE_DIR.7z
|
|
||||||
7z x $INKSCAPE_DIR.7z
|
|
||||||
$INKSCAPE_DIR/bin/inkscape -w 512 ISLEPROGRESS.SVG -o ISLEPROGRESS.PNG
|
|
||||||
$INKSCAPE_DIR/bin/inkscape -w 512 LEGO1PROGRESS.SVG -o LEGO1PROGRESS.PNG
|
|
||||||
|
|
||||||
curl -fLOSs https://raw.githubusercontent.com/probonopd/uploadtool/master/upload.sh
|
curl -fLOSs https://raw.githubusercontent.com/probonopd/uploadtool/master/upload.sh
|
||||||
./upload.sh \
|
./upload.sh \
|
||||||
build/ISLE.EXE \
|
build/ISLE.EXE \
|
||||||
build/LEGO1.DLL \
|
build/LEGO1.DLL \
|
||||||
ISLEPROGRESS.* \
|
ISLEPROGRESS.* \
|
||||||
LEGO1PROGRESS.*
|
LEGO1PROGRESS.*
|
||||||
|
|
||||||
|
curl -X POST -F key=$UPLOAD_KEY -F 'file=@ISLEPROGRESS.SVG' https://legoisland.org/progress/
|
||||||
|
curl -X POST -F key=$UPLOAD_KEY -F 'file=@LEGO1PROGRESS.SVG' https://legoisland.org/progress/
|
||||||
|
|
Loading…
Reference in a new issue