Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/build_static_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ else

# first let's get a list of files _not_ to copy
cd ./splashkitonline
TRACKED_FILES=$(git log --pretty=format: --name-only --diff-filter=A -- Browser_IDE| sort - | sed '/^$/d')
EXCLUDE_FILE=$(mktemp)
echo "$TRACKED_FILES" | sed "s|^Browser_IDE||" > "$EXCLUDE_FILE"
#TRACKED_FILES=$(git log --pretty=format: --name-only --diff-filter=A -- Browser_IDE| sort - | sed '/^$/d')
#EXCLUDE_FILE=$(mktemp)
#echo "$TRACKED_FILES" | sed "s|^Browser_IDE||" > "$EXCLUDE_FILE"

# add some explicit excludes
echo "/codemirror-5.65.15" >> "$EXCLUDE_FILE"
Expand All @@ -91,34 +91,29 @@ else
cd ../

# copy in all the untracked files!
rsync -av --progress --exclude-from="$EXCLUDE_FILE" "prebuilt/" "splashkitonline/Browser_IDE/"
rsync -av --progress --exclude-from="$EXCLUDE_FILE" "prebuilt/" "splashkitonline/"

fi


echo "========================================"
echo "Install Node Dependencies"
echo "========================================"
cd ./splashkitonline/Browser_IDE
cd ./splashkitonline

npm install

cd ../../



echo "========================================"
echo "Re-Structure Static Site"
echo "========================================"
cd ./splashkitonline/Browser_IDE

# if changed, remember to update the explicit excludes above
mv node_modules/codemirror codemirror-5.65.15
mv node_modules/jszip/dist jszip
mv node_modules/@babel/standalone babel
mv node_modules/split.js/dist split.js
mv node_modules/mime/dist mime
rm -rf external/js-lzma/data
mv ../DemoProjects DemoProjects
rm -rf js-lzma/data

cd ../
2 changes: 1 addition & 1 deletion .github/workflows/build_static_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
uses: actions/upload-artifact@v4.4.3
with:
name: preview-${{ github.sha }}
path: ./splashkitonline/Browser_IDE
path: ./splashkitonline
retention-days: 1
compression-level: 8
overwrite: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy_github_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
- name: Download Built Sites
working-directory: ./
run: |
echo | ls >> $GITHUB_OUTPUT
pwd
sudo apt-get install tree
python3 ./script/.github/workflows/download_github_site_previews.py "${{ github.repository }}" static-site
tree
Expand Down
Loading