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
| Input | Required | Default | Description |
|---|---|---|---|
directory | true | result | Directory to deploy |
repository | true | Git repository to deploy to | |
branch | true | pages | Git branch to deploy to |
ssh-key | true | SSH key for pushing the repository | |
git-author | true | Action | Git author name |
git-email | true | (empty string) | Git author email |
git-commit-message | true | automated deployment | Git commit message |