{"id":15854114,"url":"https://github.com/afeiship/action-deploy2ssh","last_synced_at":"2025-04-01T18:50:40.466Z","repository":{"id":189258502,"uuid":"680333831","full_name":"afeiship/action-deploy2ssh","owner":"afeiship","description":"An action for deploy to ssh.","archived":false,"fork":false,"pushed_at":"2023-09-26T13:06:22.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T12:28:46.208Z","etag":null,"topics":["deploy","linux","scp","server","ssh"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-18T23:34:43.000Z","updated_at":"2023-08-19T05:48:47.000Z","dependencies_parsed_at":"2024-10-05T19:40:56.812Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/action-deploy2ssh","commit_stats":null,"previous_names":["afeiship/action-deploy2ssh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Faction-deploy2ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Faction-deploy2ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Faction-deploy2ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Faction-deploy2ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/action-deploy2ssh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246695898,"owners_count":20819363,"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":["deploy","linux","scp","server","ssh"],"created_at":"2024-10-05T19:40:52.626Z","updated_at":"2025-04-01T18:50:40.444Z","avatar_url":"https://github.com/afeiship.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# action-deploy2ssh\n\u003e An action for deploy to ssh.\n\n## usage\n\u003c!-- ~/.dotfiles/.servers/.env.dicfree-server --\u003e\n1. set secret `gh secret set -f ~/.dotfiles/.servers/.env.dicfree-server`\n2. use below workflow\n```yml\nname: deploy2ssh workflow\non:\n  push:\n    branches: main\n\njobs:\n  Release:\n    name: Release\n    runs-on: ubuntu-latest\n    env:\n      SSH_HOST: ${{ secrets.SSH_HOST }}\n      SSH_USERNAME: ${{ secrets.SSH_USERNAME }}\n      SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}\n\n    if: contains(github.event.head_commit.message, '__@production__')\n    steps:\n      - uses: actions/checkout@v3\n      - name: copy file via ssh password\n        uses: afeiship/action-deploy2ssh@main\n        with:\n          build_dist: app\n          target_dir: /mnt/vdb/wms.dicfree.cn/frontend/beta/\n```\n\n## for multiple envs\n\u003e tobe done.\n```yml\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Faction-deploy2ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Faction-deploy2ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Faction-deploy2ssh/lists"}