diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 55916d14a6..eda248ed3c 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -36,6 +36,15 @@ jobs: fi echo "id=${pr}" >> $GITHUB_OUTPUT rm -f pr-id.txt + - name: Reduce the size of the website to be compatible with surge + run: | + find assets/images/posts/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -exec rm -rf ./{} \; + find newsletter/ -mindepth 1 -maxdepth 1 -type d -mtime +100 -exec rm -rf ./{} \; + rm -rf ./assets/stickers + rm -rf ./assets/images/worldtour/2023 + rm -rf ./assets/images/worldtour/2024 + rm -rf ./assets/images/desktopwallpapers + rm -rf ./assets/images/stickers - name: Publishing to surge for preview id: deploy run: npx surge@0.23.1 ./ --domain https://quarkus-site-pr-${PR_ID}-preview.surge.sh --token ${{ secrets.SURGE_TOKEN }}