dix/publish-to-o2switch
Whitelist runner IP, rsync deploy, then cleanup.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 1, 2026
- License
- MIT
Pinned Snippet
uses: dix/publish-to-o2switch@8d8d1756d61de50b64145f90cc54908b1c40b3bb # v1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| o2switch_host | O2Switch host (e.g. srv123.o2switch.net) | yes | — |
| o2switch_username | O2Switch/cPanel username | yes | — |
| o2switch_api_token | O2Switch cPanel API token | yes | — |
| ssh_user | SSH user for rsync (defaults to o2switch_username) | no | "" |
| ssh_private_key | SSH private key used for rsync | yes | — |
| remote_path | Remote path to deploy to | yes | — |
| local_path | Local path to deploy from | no | ./ |
| ssh_port | SSH port | no | 22 |
| rsync_args | Arguments passed to rsync | no | -rlgoDzvc -i --delete-after |
| exclude | Comma-separated rsync excludes | no | "" |
| use_archive | Use tar.gz archive instead of rsync | no | false |
| use_releases | Deploy to a release directory and update a symlink | no | false |
| releases_dir | Remote releases directory (required if use_releases=true) | no | "" |
| current_link | Remote symlink path for the current release (required if use_releases=true) | no | "" |
| keep_releases | Number of releases to keep (use_releases only) | no | 3 |
| skip_cleanup_whitelist | Skip cleanup whitelist step | no | false |
Outputs
| name | description |
|---|---|
| public_ip | Public IP of the GitHub runner |