It took me hours to figure out that I need a branch called pages
for deploying the generated content in .woodpecker.yml
.
Even after figuring out that I could not find any information on how to first initialize it, so here’s how I did it:
git checkout --orphan pages
git rm -rf .
git commit -a --allow-empty --allow-empty-message
This results nice empty commit, i.e. a commit which has neither payload nor commit message:
❯ git show
commit a6e593d5e8f3d75c3bb682762ac2940dc237080b (HEAD -> pages)
Author: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
Date: Tue Jun 18 06:02:33 2024 +0300
After a single CI run:
❯ git n log
commit 05e254e5d6b2dc8c29ac2d36ddfa68b9b1d56d2f (HEAD -> pages, origin/pages)
Author: Codeberg CI <jarkko.sakkinen@iki.fi>
Date: Tue Jun 18 03:08:27 2024 +0000
CI a7dc6158185fa87bc6d31431e417a10a00c6a6f8
commit a6e593d5e8f3d75c3bb682762ac2940dc237080b
Author: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
Date: Tue Jun 18 06:02:33 2024 +0300
Gives expected results so I guess this works :-)