chriskyfung / amp-affiliately-jekyll-theme

An AMP-Ready Jekyll Blog Theme
https://chriskyfung.github.io/amp-affiliately-jekyll-theme/
MIT License
18 stars 11 forks source link

👷‍♂️ Migrate from deprecated jekyll-action to vanilla GitHub Actions #63

Open chriskyfung opened 1 month ago

chriskyfung commented 1 month ago

Background

Our Jekyll site is currently using the deprecated jekyll-action for building and deployment. We need to transition to a vanilla GitHub Actions setup to ensure long-term maintainability and take advantage of the latest features.

Objectives

Tasks

  1. [ ] Create a new workflow file .github/workflows/jekyll-build.yml
  2. [ ] Set up the workflow to trigger on pushes to the main branch
  3. [ ] Configure the workflow to use the latest Ubuntu runner
  4. [ ] Set up Ruby with the correct version (currently using X.X.X)
  5. [ ] Implement caching for Ruby gems to improve build times
  6. [ ] Install dependencies using Bundler
  7. [ ] Build the Jekyll site using bundle exec jekyll build
  8. [ ] Deploy the built site to GitHub Pages using peaceiris/actions-gh-pages@v3
  9. [ ] Update repository settings to use GitHub Actions for Pages
  10. [ ] Remove the old workflow file that uses jekyll-action
  11. [ ] Test the new workflow to ensure successful build and deployment
  12. [ ] Update documentation to reflect the new setup

Environment Variables

Ensure the following environment variables are properly set in the new workflow:

Potential Issues to Watch For

Additional Considerations

Definition of Done

Resources

Please comment on this issue if you have any questions or suggestions for the migration process.