Skip to content

Commit 9f6e6af

Browse files
committed
Reduce size of preview site
Also simplify setup to avoid duplication.
1 parent f7eefd7 commit 9f6e6af

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ jobs:
7272

7373
- name: Reduce the size of the website to be compatible with surge
7474
run: |
75-
find assets/images/posts/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -exec rm -rf _site/{} \;
76-
find newsletter/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -exec rm -rf _site/{} \;
75+
find assets/images/posts/ -mindepth 1 -maxdepth 1 -type d -mtime +50 -exec rm -rf _site/{} \;
76+
find newsletter/ -mindepth 1 -maxdepth 1 -type d -mtime +50 -exec rm -rf _site/{} \;
77+
rm -rf _site/assets/stickers
7778
rm -rf _site/assets/images/worldtour/2023
79+
rm -rf _site/assets/images/worldtour/2024
7880
rm -rf _site/assets/images/desktopwallpapers
81+
rm -rf _site/assets/images/stickers
7982
8083
- name: Publishing directory for PR preview
8184
uses: actions/upload-artifact@v4

.github/workflows/preview.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ jobs:
3636
fi
3737
echo "id=${pr}" >> $GITHUB_OUTPUT
3838
rm -f pr-id.txt
39-
- name: Reduce the size of the website to be compatible with surge
40-
run: |
41-
find assets/images/posts/ -mindepth 1 -maxdepth 1 -type d -mtime +50 -exec rm -rf ./{} \;
42-
find newsletter/ -mindepth 1 -maxdepth 1 -type d -mtime +50 -exec rm -rf ./{} \;
43-
rm -rf ./assets/stickers
44-
rm -rf ./assets/images/worldtour/2023
45-
rm -rf ./assets/images/worldtour/2024
46-
rm -rf ./assets/images/desktopwallpapers
47-
rm -rf ./assets/images/stickers
4839
- name: Publishing to surge for preview
4940
id: deploy
5041
run: npx [email protected] ./ --domain https://quarkus-site-pr-${PR_ID}-preview.surge.sh --token ${{ secrets.SURGE_TOKEN }}

0 commit comments

Comments
 (0)