Codeberg/pages-server
26
386
Fork
You've already forked pages-server
54

Document how to release a pages branch from a CI or static site generator #51

Open
opened 2022年01月27日 21:40:44 +01:00 by momar · 6 comments
Owner
Copy link

This has basically been solved in Codeberg/Documentation#27 (comment), but I'd like to create a git plugin git deploy-to-branch out of that information that could take a built public folder and deploy it to pages (like mkdocs build && git deploy-to-branch --from ./site --push origin/pages --force --rm -m "Update at $(date -Is)").

This is probably also relevant for Codeberg-CI/feedback#3 then.

This has basically been solved in https://codeberg.org/Codeberg/Documentation/issues/27#issuecomment-198386, but I'd like to create a git plugin `git deploy-to-branch` out of that information that could take a built public folder and deploy it to pages (like `mkdocs build && git deploy-to-branch --from ./site --push origin/pages --force --rm -m "Update at $(date -Is)"`). This is probably also relevant for https://codeberg.org/Codeberg-CI/feedback/issues/3 then.
Author
Owner
Copy link

See https://codeberg.org/momar/playground/src/branch/main/git-deploy-to-branch for a draft - will need to be tested and documented somewhere other than --help.

It can be seen working at https://ci.codeberg.org/momar/ci-testing/build/48/6.

See https://codeberg.org/momar/playground/src/branch/main/git-deploy-to-branch for a draft - will need to be tested and documented somewhere other than `--help`. It can be seen working at https://ci.codeberg.org/momar/ci-testing/build/48/6.

hello,

where does the "git deploy-to-branch" command come from, I don't have it in version 2.35.1.

hello, where does the "git deploy-to-branch" command come from, I don't have it in version 2.35.1.

hello,

where does the "git deploy-to-branch" command come from, I don't have it in version 2.35.1.

@Tealk, if I understand correctly, it is a plugin that @momar is working on, so it does not come as standard in git.

> hello, > > where does the "git deploy-to-branch" command come from, I don't have it in version 2.35.1. @Tealk, if I understand correctly, it is a plugin that @momar is working on, so it does not come as standard in git.

I have created another suggestion, because this is not the best practice from git.

#59

I have created another suggestion, because this is not the best practice from git. https://codeberg.org/Codeberg/pages-server/issues/59
Contributor
Copy link

Hi,

I solved this for me by using a drone/woodpecker plugin. This makes it possible to build and deploy like this (from this repo):

kind:pipelinename:defaultsteps:- name:buildimage:squidfunk/mkdocs-materialcommand:[build]- name:publishimage:itsblue.dev/plugins/codeberg-pages-deploysettings:folder:sitessh_key:from_secret:gitea-ssh-key

It's just a quickly hacked together plugin but might be helpful :)
Source is here: https://itsblue.dev/plugins/codeberg-pages-deploy

Hi, I solved this for me by using a drone/woodpecker plugin. This makes it possible to build and deploy like this ([from this repo](https://itsblue.dev/ScStw/documentation)): ```yaml kind: pipeline name: default steps: - name: build image: squidfunk/mkdocs-material command: [build] - name: publish image: itsblue.dev/plugins/codeberg-pages-deploy settings: folder: site ssh_key: from_secret: gitea-ssh-key ``` It's just a quickly hacked together plugin but might be helpful :) Source is here: [https://itsblue.dev/plugins/codeberg-pages-deploy](https://itsblue.dev/plugins/codeberg-pages-deploy)
Just solved this with a git hook https://codeberg.org/Tealk/Git-Hooks_examples/src/branch/master/pre-push%20git-branch%20hugo
Sign in to join this conversation.
No Branch/Tag specified
main
no-not-allow-for-new-users
pages
pages-custom-domain-update
ci_user-local-acme-service
feat/redis-caching
fix/memory-problem
v6.4
v6.3
v6.2.1
v6.2
v6.1
v6.0
v5.1
v5.0
v4.6.3
v4.6.2
v4.6.1
v4.6
v4.5
v4.4
v4.3
v4.2
v4.1
v4.0
v3.2.1
v3.2
v0.3.1
v0.3.0
v0.2.2
v0.2.1
v3.1
v3.0a
v3.0
v2.5b
v2.5a
v2.5
v2.4
v2.3
v2.2
v2.1
v2.0
v1.0_php
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/pages-server#51
Reference in a new issue
Codeberg/pages-server
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?