@@ -544,8 +544,8 @@ jobs:
544544 run : |
545545 echo "📄 Preparing GitHub Pages deployment..."
546546
547- # Ensure docs directory exists
548- mkdir -p docs
547+ # Ensure scripts directory exists
548+ mkdir -p scripts
549549
550550 # Replace repository placeholders with actual values in HTML and scripts
551551 REPO_OWNER="${{ github.repository_owner }}"
@@ -554,17 +554,17 @@ jobs:
554554 echo "Repository info: $REPO_OWNER/$REPO_NAME"
555555
556556 # Replace placeholders in HTML file
557- if [[ -f "docs /index.html" ]]; then
558- sed -i "s/{{REPO_OWNER}}/$REPO_OWNER/g" docs /index.html
559- sed -i "s/{{REPO_NAME}}/$REPO_NAME/g" docs /index.html
560- echo "✅ Updated placeholders in docs /index.html"
557+ if [[ -f "scripts /index.html" ]]; then
558+ sed -i "s/{{REPO_OWNER}}/$REPO_OWNER/g" scripts /index.html
559+ sed -i "s/{{REPO_NAME}}/$REPO_NAME/g" scripts /index.html
560+ echo "✅ Updated placeholders in scripts /index.html"
561561 fi
562562
563563 # Replace placeholders in install script
564- if [[ -f "docs /windows" ]]; then
565- sed -i "s/{{REPO_OWNER}}/$REPO_OWNER/g" docs /windows
566- sed -i "s/{{REPO_NAME}}/$REPO_NAME/g" docs /windows
567- echo "✅ Updated placeholders in docs /windows"
564+ if [[ -f "scripts /windows" ]]; then
565+ sed -i "s/{{REPO_OWNER}}/$REPO_OWNER/g" scripts /windows
566+ sed -i "s/{{REPO_NAME}}/$REPO_NAME/g" scripts /windows
567+ echo "✅ Updated placeholders in scripts /windows"
568568 fi
569569
570570 # Update version in install script if this is a tag
@@ -573,13 +573,13 @@ jobs:
573573 echo "Updating version to: $VERSION"
574574
575575 # Update the fallback version in the install script
576- if [[ -f "docs /windows" ]]; then
577- sed -i "s/v1\.0\.0/$VERSION/g" docs /windows
576+ if [[ -f "scripts /windows" ]]; then
577+ sed -i "s/v1\.0\.0/$VERSION/g" scripts /windows
578578 echo "✅ Updated fallback version to $VERSION in install script"
579579 fi
580580
581581 # Update latest.json with current version
582- cat > docs /latest.json << EOF
582+ cat > scripts /latest.json << EOF
583583 {
584584 "version": "$VERSION",
585585 "tag_name": "$VERSION",
@@ -609,18 +609,18 @@ jobs:
609609 fi
610610
611611 # Verify files exist
612- echo "Files in docs directory:"
613- ls -la docs /
612+ echo "Files in scripts directory:"
613+ ls -la scripts /
614614
615- if [[ -f "docs /windows" ]]; then
616- echo "Content of docs /windows (first 10 lines):"
617- head -10 docs /windows
615+ if [[ -f "scripts /windows" ]]; then
616+ echo "Content of scripts /windows (first 10 lines):"
617+ head -10 scripts /windows
618618 fi
619619
620620 - name : Upload Pages Artifact
621621 uses : actions/upload-pages-artifact@v3
622622 with :
623- path : ./docs
623+ path : ./scripts
624624
625625 - name : Deploy to GitHub Pages
626626 id : deployment
0 commit comments