Migrate blog deployment to git-pages #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The blog currently deploys via a Forgejo Action that builds Hugo and SCPs the
public/directory to/srv/docker/nginx/html/blogon a remote server. This requires:garygrossgarten/github-action-scpactiongit-pages is a static site server designed for Git forges (Forgejo/Gitea). It eliminates the SCP step and the nginx dependency.
Current Setup
.forgejo/workflows/build.yml:hugo --minify --gc)public/to remote nginx via SSHMoving parts: Forgejo runner + SCP + 4 SSH secrets + nginx container
Proposed Setup
pagesbranch or upload as archive to git-pagesMoving parts: Forgejo runner + git push/upload (no secrets needed beyond a deploy token)
Benefits
Things to Figure Out
<hostname>/or<hostname>/<project>/— may need a subdomain likeblog.martin.mdTasks