{"id":19120946,"url":"https://github.com/php-actions/deploy-ssh","last_synced_at":"2025-02-22T12:45:32.893Z","repository":{"id":65155642,"uuid":"572055475","full_name":"php-actions/deploy-ssh","owner":"php-actions","description":"Deploy your application via SSH.","archived":false,"fork":false,"pushed_at":"2022-12-07T20:37:06.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T07:37:31.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["g105b"]}},"created_at":"2022-11-29T13:11:40.000Z","updated_at":"2022-11-30T18:30:52.000Z","dependencies_parsed_at":"2023-01-05T05:02:29.586Z","dependency_job_id":null,"html_url":"https://github.com/php-actions/deploy-ssh","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"5d62612aac2034a2ef9f9b0025dc055c4bdc0bf9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fdeploy-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fdeploy-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fdeploy-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fdeploy-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-actions","download_url":"https://codeload.github.com/php-actions/deploy-ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240177051,"owners_count":19760308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:15:34.027Z","updated_at":"2025-02-22T12:45:32.873Z","avatar_url":"https://github.com/php-actions.png","language":"Shell","readme":"Deploy your application via SSH.\n================================\n\n\u003e **THIS IS CURRENTLY WORK IN PROGRESS** - once v1 is released there will be no more major changes.\n\nAfter a successful test run, this action can copy the project's files via SSH to another server, which could be an in-place deployment, or a fresh server that's set up for each deployment.\n\nAn example repository has been created at https://github.com/php-actions/example-deploy-ssh to show how to use this action in development and production projects.\n\nUsage\n-----\n\nCreate your Github Workflow configuration in `.github/workflows/ci.yml` or similar.\n\n```yml\nname: CI\n\non: [push]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n      # Load the pre-build project files:\n      - uses: actions/download-artifact@v3\n        with:\n          name: build-artifact\n          path: /tmp/github-actions\n    \n      # Then deploy to your server of choice\n      - uses: php-actions/deploy\n        with:\n          hostname: deploy.example.com\n          user: webdeploy\n          path: /var/www/example.com\n          ssh_key: {{ secrets.deploy_ssh_key }}\n```\n\nTo generate an SSH key pair (private and public) using the RSA algorithm, `ssh-keygen -t rsa -b 4096 -C \"deploy@github-acions\"`. To convert a key pair into PEM format, `ssh-keygen -f actions_rsa -e -m pem` - then paste the contents of the generated PEM file into your project's Github Secrets.\n\n// TODO: Document post-transfer script, how it might need adding to sudoers if sudo is required.\n","funding_links":["https://github.com/sponsors/g105b"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fdeploy-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-actions%2Fdeploy-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fdeploy-ssh/lists"}