Skip to content

Commit 24cfa08

Browse files
authored
Merge pull request #50282 from gsmet/optimize-images-preview
Optimize PNG images embedded in guides and remove content more aggressively from preview
2 parents ab580cf + 24d06f1 commit 24cfa08

File tree

236 files changed

+10
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+10
-5
lines changed

.github/workflows/preview.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,19 @@ jobs:
108108

109109
- name: Reduce the size of the website to be compatible with surge
110110
run: |
111-
find assets/images/posts/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -exec rm -rf _site/{} \;
112-
find newsletter/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -exec rm -rf _site/{} \;
111+
rm -rf _site/assets/images/posts/
112+
rm -rf _site/assets/images/books/
113+
rm -rf _site/assets/images/events/
114+
rm -rf _site/assets/images/quarkus2/
115+
rm -rf _site/assets/images/quarkus3/
116+
rm -rf _site/assets/images/worldtour/
113117
rm -rf _site/assets/stickers
114-
rm -rf _site/assets/images/worldtour/2023
115-
rm -rf _site/assets/images/worldtour/2024
116118
rm -rf _site/assets/images/desktopwallpapers
117119
rm -rf _site/assets/images/stickers
118-
120+
rm -rf _site/newsletter/
121+
# we only need the images from the main version
122+
rm -rf _site/guides/images/
123+
rm -rf _site/blog/
119124
- name: Publishing to surge for preview
120125
id: deploy
121126
run: npx [email protected] ./_site --domain https://quarkus-pr-main-${PR_ID}-preview.surge.sh --token ${{ secrets.SURGE_TOKEN }}
-26.3 KB
-28.3 KB
-6.54 KB
-13.5 KB
-17.5 KB
-18.9 KB
-9.84 KB
-21.5 KB
-10.3 KB

0 commit comments

Comments
 (0)