-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Update Tailwind sketch resources to v2
- Loading branch information
1 parent
78d696a
commit c5f181d
Showing
18 changed files
with
20 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,23 +13,25 @@ jobs: | |
runs-on: "macos-latest" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: oleksiyrudenko/gha-git-credentials@v1 | ||
- uses: oleksiyrudenko/gha-git-credentials@v2 | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Download & Install Sketch | ||
run: | | ||
curl -OL https://sketch.com/download/sketch.zip | ||
unzip sketch.zip | ||
run: curl -OL https://sketch.com/download/sketch.zip && unzip sketch.zip | ||
- name: Cleanup assets | ||
run: rm -rf images/* Tailwind\ CSS.pdf || true | ||
- name: Generate artboard previews with Sketchtool | ||
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export artboards --output=images --formats=png --scales=2 --overwriting=YES *.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 --overwriting=YES *.sketch | ||
- name: Generate PDF page export with Sketchtool | ||
run: Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export pages --item="Tailwind CSS" --formats=pdf --scales=2 --overwriting=YES *.sketch | ||
- name: Generate preview pdf of the artboards with Sketchtool | ||
run: | | ||
Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export artboards --output=/tmp --formats=pdf --scales=2 --overwriting=YES *.sketch | ||
rm /tmp/Color\ [email protected] | ||
curl -OL https://github.com/coherentgraphics/cpdf-binaries/archive/master.zip && unzip master.zip | ||
cpdf-binaries-master/OSX-Intel/cpdf /tmp/*.pdf -o ./images/preview.pdf | ||
- name: Generate a file preview with Sketchtool | ||
run: | | ||
Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export pages --output=images --item="Tailwind CSS" --formats=png --scales=1 --overwriting=YES *.sketch | ||
mv images/Tailwind\ CSS.png images/preview.png | ||
- name: Push assets to git | ||
run: | | ||
ls -al images/ | ||
git add images/* Tailwind\ [email protected] | ||
git add images/* | ||
git commit -m "🎨 Update preview assets" && git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.