Skip to content

Commit 880e407

Browse files
authored
Merge pull request #2 from joshmoore/librsvg
Update logo build to fix gradients
2 parents 4666a0b + 2b3c27f commit 880e407

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,26 @@ on:
77

88
jobs:
99
build:
10-
runs-on: macos-latest
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
1313
with:
1414
submodules: true
15-
- run: brew install imagemagick
16-
- run: mkdir target
17-
- run: convert zarr-gradient.svg target/zarr-gradient.png
15+
- run: sudo apt-get update -y && sudo apt-get install -y inkscape
16+
- run: inkscape --export-png=zarr-gradient.png zarr-gradient.svg
1817
- env:
1918
FILES: zarr-pink-horizontal zarr-pink-stacked
2019
run: |
2120
for file in $FILES; do
22-
convert -background none ${file}.svg target/${file}-transparent.png
23-
convert -background white ${file}.svg target/${file}-on-white.png
24-
convert -background black ${file}.svg target/${file}-on-black.png
21+
inkscape --export-background-opacity=0 --export-png=${file}-transparent.png ${file}.svg
22+
inkscape --export-background="#ffffff" --export-png=${file}-white.png ${file}.svg
23+
inkscape --export-background="#000000" --export-png=${file}-black.png ${file}.svg
2524
done
26-
zip -r logos.zip target/
2725
- name: Upload artwork as artifact
2826
uses: actions/upload-artifact@v2
2927
with:
30-
name: logos.zip
31-
path: logos.zip
28+
name: zarr-logo-pngs
29+
path: "*.png"
3230

3331
release:
3432
if: startsWith(github.ref, 'refs/tags')
@@ -41,12 +39,11 @@ jobs:
4139
- name: Download artwork artifact
4240
uses: actions/download-artifact@v2
4341
with:
44-
name: logos.zip
42+
name: zarr-logo-pngs
4543
path: .
46-
- run: unzip logos.zip
4744
- name: Upload website as release asset
4845
env:
4946
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
5047
run: |
5148
tagname="${GITHUB_REF#refs/tags/}"
52-
gh release create "$tagname" target/*.png
49+
gh release create "$tagname" *.png

0 commit comments

Comments
 (0)