Skip to content

Commit

Permalink
🎨 Fix page preview generation by using @2x
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedobbelaere committed Jul 23, 2020
1 parent 7d37144 commit a3d5728
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ jobs:
run: |
curl -OL https://sketch.com/download/sketch.zip
unzip sketch.zip
- name: Install Inter font
run: |
curl -L -o Inter.zip https://github.com/rsms/inter/releases/download/v3.13/Inter-3.13.zip
unzip Inter.zip
cp Inter\ Desktop/*.otf /Library/Fonts/
- name: Cleanup assets
run: rm -rf images/* Tailwind\ CSS.pdf || true
- name: Generate artboard preview with Sketchtool
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export artboards --output=images --formats=png *.sketch
- name: Generate page preview with Sketchtool
- name: Generate artboard previews with Sketchtool
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export artboards --output=images --formats=png --scales=2 *.sketch
- name: Generate a page preview with Sketchtool
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export preview --output=images --filename="preview.png" --max-size=2000 *.sketch
- name: Generate PDF page export with Sketchtool
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export pages --item="Tailwind CSS" --formats=pdf *.sketch
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export pages --item="Tailwind CSS" --formats=pdf --scales=2 *.sketch
- name: Push assets to git
run: |
ls -al images/
git add images/* Tailwind\ CSS.pdf
git add images/* Tailwind\ CSS@2x.pdf
git commit -m "🎨 Update preview assets" && git push
Binary file removed Tailwind CSS.pdf
Binary file not shown.
Binary file modified Tailwind CSS.sketch
Binary file not shown.
Binary file removed images/Box Shadow.png
Binary file not shown.
Binary file removed images/Buttons.png
Binary file not shown.
Binary file removed images/Color swatches.png
Binary file not shown.
Binary file removed images/Colors.png
Binary file not shown.
Binary file removed images/Heroicons (Outline) by Steve Schoger.png
Binary file not shown.
Binary file removed images/Heroicons (Solid) by Steve Schoger.png
Binary file not shown.
Binary file removed images/Tailwind CSS.png
Binary file not shown.
Binary file removed images/Typography.png
Binary file not shown.
Binary file removed images/preview.png
Binary file not shown.

0 comments on commit a3d5728

Please sign in to comment.