Publishing a site
Explains how to set up publishing. Explains how to build a CI workflow. End user docs.
git-pages supports multiple approaches to publish a site:
It is also possible to unpublish a site.
Webhook
- page root url
- HTTP POST
- application/json
- ref = refs/heads/pages
- empty content performs unpublish
- authentication
- dry runnable
Forgejo Action
https://codeberg.org/git-pages/action
From archive
- cli or direct REST API
- page root url
- formats (tar, tar gzip, tar zstd, zip)
- dry runnable
- Expires Header
full update
- HTTP PUT
partial update
- HTTP PATCH
- "whiteout marker"
- Create-Parents Header
- Atomic Header
- If-Problems Header
- may conflict
- emtpy => unpublish
From git repository
- cli or direct REST API
- page root url
- HTTP PUT
- application/x-www-form-urlencoded
- dry runnable
- Branch Header
- Expires Header
Unpublish
- cli or direct REST API
- page root url
- HTTP DELETE
- dry runnable