diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8f781d0..cfa9ff6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,12 +30,7 @@ jobs: cd resources/js npm run build - name: Fetch Emoji - run: | - git clone -b gh-pages --depth=1 https://github.com/twitter/twemoji/ - grep ".png" ./html/styles/emoji.css | sed -E 's/.*\/([^/]+)\..*/\1/g' | while read f; do - cp "./twemoji/36x36/$f.png" "./html/images/emoji/" - done - rm -rf twemoji + run: ./bin/setup/fetch-emoji.sh - name: Deploy env: FTP_SERVER: ${{ secrets.FTP_SERVER }} diff --git a/bin/setup/fetch-emoji.sh b/bin/setup/fetch-emoji.sh new file mode 100755 index 0000000..b69fdf3 --- /dev/null +++ b/bin/setup/fetch-emoji.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cd "$(dirname "$(dirname "$(dirname "$0")")")" + +git clone -b gh-pages --depth=1 https://github.com/twitter/twemoji/ + +grep ".png" ./html/styles/emoji.css | sed -E 's/.*\/([^/]+)\..*/\1/g' | while read f; do + cp -v "./twemoji/36x36/$f.png" "./html/images/emoji/" +done + +rm -rf twemoji \ No newline at end of file