Skip to content

Commit

Permalink
Update sketchup.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brunurb authored Nov 19, 2024
1 parent 975aa74 commit d9be4bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/sketchup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ jobs:
ref: 053c9bfad942c25a092728e1e8cb5bc3598ab52e
path: google-sketchup

- name: Copy images
run: |
mkdir -p majortom/sketchup/pictures
cp -r google-sketchup/SKETCHUP\ RASTER/* majortom/sketchup/pictures/
- name: Generate sketchup.html
run: |
echo "Generating sketchup.html..."
Expand Down Expand Up @@ -74,8 +69,9 @@ jobs:
echo '<div id="myMosaic">' >> majortom/sketchup.html
# Correctly add images inside the myMosaic div
for img in $(ls majortom/sketchup/pictures | grep -E '\.jpeg$|\.jpg$|\.gif$|\.svg$|\.png$|\.webp$'); do
echo "<img src='https://brunurb.github.io/majortom/sketchup/pictures/$img' alt='Gallery Image' data-full='https://brunurb.github.io/majortom/sketchup/pictures/$img' class='thumbnail' onclick='showImage(this.dataset.full)' />" >> majortom/sketchup.html
for img in $(ls google-sketchup/SKETCHUP\ RASTER | grep -E '\.jpeg$|\.jpg$|\.gif$|\.svg$|\.png$|\.webp$'); do
raw_url="https://raw.githubusercontent.com/brunurb/Google-Sketchup/053c9bfad942c25a092728e1e8cb5bc3598ab52e/SKETCHUP%20RASTER/$img"
echo "<img src='$raw_url' alt='Gallery Image' data-full='$raw_url' class='thumbnail' onclick='showImage(this.dataset.full)' />" >> majortom/sketchup.html
done
echo '</div>' >> majortom/sketchup.html
Expand Down

0 comments on commit d9be4bd

Please sign in to comment.