Skip to content

Commit 53f995c

Browse files
Merge pull request #2394 from holly-cummins/do-not-preview-everything
Remove some sections from preview to fit under the surge limit
2 parents d7c1064 + 5d49395 commit 53f995c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/preview.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ 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 +100 -exec rm -rf ./{} \;
42+
find newsletter/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -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
3948
- name: Publishing to surge for preview
4049
id: deploy
4150
run: npx [email protected] ./ --domain https://quarkus-site-pr-${PR_ID}-preview.surge.sh --token ${{ secrets.SURGE_TOKEN }}

0 commit comments

Comments
 (0)