Files
HacktivityLabSheets/switch-to-github-pages.sh
Z. Cliffe Schreuders 94d4f3b74a Set up GitHub Pages compatibility with new Gemfile and scripts
- Updated Gemfile for GitHub Pages compatibility, including necessary gems.
- Added Gemfile.github-pages for specific GitHub Pages dependencies.
- Created scripts to switch between GitHub Pages and local development setups.
- Introduced GitHub Actions workflow for building and deploying the Jekyll site to GitHub Pages.
2025-09-15 23:33:11 +01:00

24 lines
636 B
Bash
Executable File

#!/bin/bash
# Script to switch to GitHub Pages compatible setup
echo "Switching to GitHub Pages compatible setup..."
# Backup current Gemfile
cp Gemfile Gemfile.local-dev
# Use GitHub Pages compatible Gemfile
cp Gemfile.github-pages Gemfile
echo "✅ Switched to GitHub Pages compatible setup"
echo "📝 Your local development Gemfile has been backed up as Gemfile.local-dev"
echo ""
echo "To switch back to local development:"
echo " cp Gemfile.local-dev Gemfile"
echo " bundle install"
echo ""
echo "To deploy to GitHub Pages:"
echo " git add ."
echo " git commit -m 'Update for GitHub Pages'"
echo " git push origin main"