mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-21 11:18:09 +00:00
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.
This commit is contained in:
23
switch-to-github-pages.sh
Executable file
23
switch-to-github-pages.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user