openrailassociation/Website Preview and Deployment via SSH

Deploys a built website artifact to a production and preview environment via SSH, with optional link checking.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: openrailassociation/web-deployment-action@866b5120138b7deddc2c1e3600bc897a39bd8c91 # v1.3.1

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

namedescriptionrequireddefault
artifact_nameThe name of the uploaded artifact to deploy.yes
condition_productionCondition to deploy to production. E.g., compare `github.ref` to `'refs/heads/main'`. See `.github/workflows/selftest.yml` for an example.yes
domain_productionDomain name for the production deployment, e.g. https://example.comyes
domain_previewDomain name for the preview deployment, e.g. https://preview.example.comyes
dir_baseRemote base directory (e.g. /var/www/virtual)yes
dir_productionFull path for production deploymentyes
dir_preview_basePreview base domain (e.g. preview)yes
dir_preview_subdirPreview subdir (e.g. pr-123)yes
ssh_hostSSH hostname (e.g. webspace.example.org)yes
ssh_userSSH usernameyes
ssh_keySSH private key for authenticating with the deployment serveryes
ssh_portSSH portno22
ssh_timeoutSSH connection timeout (e.g. 1m)no1m
ssh_command_timeoutSSH command timeout (e.g. 2m)no2m
ssh_rmRemove remote directory before deploying (true/false)notrue
ssh_strip_componentsHow many path components to strip (for tar/scp unpacking)no1
linkchecker_enabledEnable link checker (true/false)notrue
linkchecker_excludeComma-separated list of domains to exclude from link checkerno""
linkchecker_include_fragmentsInclude anchor fragments in link checkingnotrue
linkchecker_offlineOnly check local/relative links, do not fetch remote links (true/false)nofalse
linkchecker_max_concurrencyMax concurrent requests for link checkerno1
linkchecker_user_agentUser-Agent for link checkingnoMozilla/5.0 (Windows NT 10.0; Win64; x64) Apple WebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
linkchecker_retry_timesRetry delay in seconds for link checkingno5
linkchecker_fail_on_errorsFail workflow on link check errors (true/false)nofalse
linkchecker_verboseTurn on verbose linkchecker logging in action logs (true/false)nofalse
linkchecker_extra_argsExtra arguments to pass to the link checker (e.g. --some-flag value)no""
sticky_comment_enabledWhether to enable sticky comments for the pull request. Defaults to true.notrue
step_summary_enabledWhether to enable step summaries in the GitHub Actions UI. Defaults to true.notrue
gh_deploymentName of the optional GitHub deployment to create. Requires the deployments permission. Defaults to empty, in which case no deployment is created.no""
namedescription
urlThe URL of the deployed production or preview website