- Go 100%
| .gitignore | Chore: initial impl | |
| action.yml | Chore: initial impl | |
| go.mod | Fix: don't use rsync | |
| go.sum | Fix: don't use rsync | |
| LICENSE | Initial commit | |
| main.go | Fix: don't use rsync | |
| README.md | Fix: don't use rsync | |
codeberg-pages-deploy
A drone plugin to deploy to codeberg pages. Basically takes a folder and pushes it to the "pages" branch in the same repo.
Example usage
on:push:branches:- mainjobs:build:runs-on:ubuntu-lateststeps:- uses:actions/checkout@v3- name:Setup Hugouses:https://github.com/peaceiris/actions-hugo.git@v2with:hugo-version:"latest"extended:true- name:Buildrun:| hugo --minify- name:Setup Gouses:actions/setup-go@v3with:go-version:"1.21"- name:Deployuses:https://itsblue.dev/actions/codeberg-pages-deploy@v1with:folder:./publicNote: you have to either use an image which includes go or set it up before running this action. See Creating Go Actions.
Options
| parameter | description | default |
|---|---|---|
| folder | The folder to deploy from | |
| remote_folder | The folder to deploy to in the remote repo | / |
| ssh_key | The private ssh key to use if pushing to an ssh remote | empty |
| git_remote | A custom git remote to push to | the current repo |
| git_branch | The branch to push to | pages |
| git_name | The name to use for the commit | [BOT] pages deployer |
| git_email | The email to use for the commit | noreply@pages.bot |
| commit_message | The commit message | Update pages 🚀 |
| token | The token/password to use if pushing to a custom http remote | the gitea-supplied token (aka GITHUB_TOKEN) |
| username | The username to use if pushing to a custom http remote | the actor (aka GITHUB_ACTOR) |
| force | Force commit and overwrite all previous commits | false |