mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-20 13:50:46 +00:00
- 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.
24 lines
636 B
Bash
Executable File
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"
|