adnan360 f95ba2f103 Add lighter image for Jekyll 3 år sedan
..
.drone.yml f95ba2f103 Add lighter image for Jekyll 3 år sedan
README.md 4b2d10f7f3 Add Jekyll Drone CI config 3 år sedan

README.md

Drone CI config for building Jekyll sites with Codeberg.org

Create your Jekyll site on a directory, such as src.

mkdir src
cd src
bundle init
echo 'gem "jekyll"' >> Gemfile
bundle
echo '<h1>Jekyll test page</h1>' > index.html

Put a .gitignore on repo root:

output/
src/_site/
src/.sass-cache/
src/.jekyll-cache/
src/.jekyll-metadata

Put the .drone.yml from this directory to the repo root directory on your pages repo. Change:

  • remote - paste in your repo's ssh url
  • branch - the branch you want to push the results (usually main or master)
  • author_name - commit author (appears on commit info nothing else)
  • author_email - commit author email (appears on commit info nothing else)

Check ../codeberg-push/README.md for details on how to setup ssh keys and stuff. Then commit the changes to see it built.

Demo

https://jekyll-test.codeberg.page/ - source repo