dix/publish-to-o2switch

Whitelist runner IP, rsync deploy, then cleanup.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 1, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: dix/publish-to-o2switch@8d8d1756d61de50b64145f90cc54908b1c40b3bb # v1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
o2switch_hostO2Switch host (e.g. srv123.o2switch.net)yes
o2switch_usernameO2Switch/cPanel usernameyes
o2switch_api_tokenO2Switch cPanel API tokenyes
ssh_userSSH user for rsync (defaults to o2switch_username)no""
ssh_private_keySSH private key used for rsyncyes
remote_pathRemote path to deploy toyes
local_pathLocal path to deploy fromno./
ssh_portSSH portno22
rsync_argsArguments passed to rsyncno-rlgoDzvc -i --delete-after
excludeComma-separated rsync excludesno""
use_archiveUse tar.gz archive instead of rsyncnofalse
use_releasesDeploy to a release directory and update a symlinknofalse
releases_dirRemote releases directory (required if use_releases=true)no""
current_linkRemote symlink path for the current release (required if use_releases=true)no""
keep_releasesNumber of releases to keep (use_releases only)no3
skip_cleanup_whitelistSkip cleanup whitelist stepnofalse
namedescription
public_ipPublic IP of the GitHub runner