Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

deploy-pages

Deploys a directory to Codeberg pages

This action is not depending on Nix and could be used in any other enviornment. The only dependency are Git and SSH.

Usage

Warning: This action uses a Git force-push overwriting the Git history as it is generally not needed for a pages deployment. Be careful when using this on a repository which contains more than a pages branch.

In your workflow, add the following step:

steps:
  - name: Deploy
    uses: https://codeberg.org/nix-actions/deploy-pages@main
    with:
      directory: dir-to-deploy
      repository: git@codeberg.org:my-user/my-repo.git
      ssh-key: ${{ secrets.MY_DEPLOY_KEY }}

Inputs

InputRequiredDefaultDescription
directorytrueresultDirectory to deploy
repositorytrueGit repository to deploy to
branchtruepagesGit branch to deploy to
ssh-keytrueSSH key for pushing the repository
git-authortrueActionGit author name
git-emailtrue(empty string)Git author email
git-commit-messagetrueautomated deploymentGit commit message