I want to build a Semaphore CI pipeline that checks out my branch, builds some artifacts and pushes these to another branch.
Specifically I'm writing Sphinx docs, and when their source merges to main
, I want to build the HTML docs in this pipeline, and push the HTML to another branch, which GitHub Pages will ingest and host.
I can't find any info in Semaphore's docs on how to push back to my git repository.
This is a relatively common use case, with all the main competitors offering easy execution:
- Jenkins has a Git Publisher plugin
- GitHub Actions' checkout action lets push using the same token used for checkout out with no additional setup
- Bitbucket Pipelines makes it really easy to push back to your repo