mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-22 00:55:15 +00:00
fix: handle large presentations with external assets mode (#1090)
This commit is contained in:
committed by
GitHub
parent
e4fc57f204
commit
07e1e665d6
@@ -22,9 +22,20 @@ gh repo create "$REPO_NAME" --"$VISIBILITY" --description "$DESCRIPTION"
|
||||
# Clone, push, enable pages
|
||||
TMPDIR=$(mktemp -d)
|
||||
git clone "https://github.com/$USERNAME/$REPO_NAME.git" "$TMPDIR"
|
||||
|
||||
HTML_DIR=$(dirname "$HTML_FILE")
|
||||
|
||||
# Copy HTML file as index.html
|
||||
cp "$HTML_FILE" "$TMPDIR/index.html"
|
||||
|
||||
# Copy assets directory if it exists alongside the HTML file
|
||||
if [ -d "$HTML_DIR/assets" ]; then
|
||||
cp -r "$HTML_DIR/assets" "$TMPDIR/assets"
|
||||
echo "Copied assets/ directory ($(find "$HTML_DIR/assets" -type f | wc -l) files)"
|
||||
fi
|
||||
|
||||
cd "$TMPDIR"
|
||||
git add index.html
|
||||
git add -A
|
||||
git commit -m "Publish content"
|
||||
git push origin main
|
||||
|
||||
|
||||
Reference in New Issue
Block a user