{"id":19302359,"url":"https://github.com/axelerant/platformsh-deploy-action","last_synced_at":"2025-04-22T10:33:45.817Z","repository":{"id":41249605,"uuid":"448154636","full_name":"axelerant/platformsh-deploy-action","owner":"axelerant","description":"Deploy to platform.sh with safe settings","archived":false,"fork":false,"pushed_at":"2024-06-14T11:12:54.000Z","size":102,"stargazers_count":5,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-16T10:36:56.463Z","etag":null,"topics":["deployment","platformsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/axelerant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-01-15T01:40:00.000Z","updated_at":"2024-06-14T11:12:58.000Z","dependencies_parsed_at":"2024-06-14T12:44:48.522Z","dependency_job_id":null,"html_url":"https://github.com/axelerant/platformsh-deploy-action","commit_stats":{"total_commits":85,"total_committers":5,"mean_commits":17.0,"dds":0.2941176470588235,"last_synced_commit":"729cccf38bdcd415e8f7e7d7b333e76c0c0a208a"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelerant%2Fplatformsh-deploy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelerant%2Fplatformsh-deploy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelerant%2Fplatformsh-deploy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelerant%2Fplatformsh-deploy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axelerant","download_url":"https://codeload.github.com/axelerant/platformsh-deploy-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250221415,"owners_count":21394700,"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":["deployment","platformsh"],"created_at":"2024-11-09T23:21:35.125Z","updated_at":"2025-04-22T10:33:45.352Z","avatar_url":"https://github.com/axelerant.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n⚠️ **Deprecation Notice** ⚠️\n\nThis GitHub Action (`platformsh-deploy-action`) is now deprecated and will no longer be maintained or receive updates. We recommend using the new [Platform.sh Action](https://github.com/axelerant/platformsh-action) for all future deployments and integrations.\n\n## Migration Instructions\n\nTo migrate to the new action, Edit your workflow YAML file(s) and follow these steps:\n\n1. Checkout repository code\n\n  ```yaml\n  - name: Check out repository code\n    uses: actions/checkout@v4\n    with:\n      fetch-depth: 0\n  ```\n2. **Replace the old action**: replace any references to `axelerant/platformsh-deploy-action` with `axelerant/platformsh-action`.\n\n## Example\n\n**Old Configuration:**\n\n  ```yaml\n    - name: Deploy to Platform.sh\n      uses: axelerant/platformsh-deploy-action@v1\n      with:\n        project-id: 'project-id'\n        cli-token: ${{ secrets.PlatformCliToken }}\n        ssh-private-key: ${{ secrets.PlatformSshKey }}\n        php-version: 8.1\n        force-push: true\n  ```\n\n**New Configuration:**\n\n```yaml\n- name: Check out repository code\n  uses: actions/checkout@v4\n  with:\n    fetch-depth: 0\n- name: Deploy to platform.sh\n  uses: axelerant/platformsh-action@v1\n  with:\n    action: 'deploy'\n    project-id: 'project-id'\n    cli-token: ${{ secrets.PLATFORMSH_CLI_TOKEN }}\n    ssh-private-key: ${{ secrets.PlatformSshKey }}\n    force-push: true\n```\n\n# Platform.sh Deploy action\n\nThis is a composite action designed to simplify deployment to platform.sh. One of the main reasons to write this was to avoid a basic mistake with checking out the repository. The popular Github action `actions/checkout` does a shallow clone by default which can sometimes break the site. This action does a full clone and sets up PHP as well before installing the CLI.\n\n## Inputs\n\n### `project-id`\n\nThe project ID on platform.sh. You can find this using the CLI or the web console.\n\n### `cli-token`\n\nA token to access platform.sh API. See instructions on [platform.sh docs](https://docs.platform.sh/development/cli/api-tokens.html).\n\n### `ssh-private-key` (optional)\n\nThe platform.sh CLI generates a temporary certificate for use for deployment. However, you may still choose to provide a private key that lets you push via git. Create a specialized key used _only_ for deployment and use Github secrets to keep your key safe.\n\n### `php-version`\n\nThe PHP version to use. This is directly passed to [`shivammathur/setup-php`](https://github.com/marketplace/actions/setup-php-action). Default: `8.0`.\n\n### `force-push`\n\nAn option to force push changes to the project repository on Platform.sh. Use with caution as force push overrides your commit history.\n\n### `environment-name`\n\nThe name of the platform.sh instance on which to act. Default: The current branch name.\n\n## Outputs\n\nNo outputs.\n\n## Example usage\n\n```yaml\nuses: axelerant/platformsh-deploy-action@v1\nwith:\n  project-id: ${{ secrets.PlatformProjectId }}\n  cli-token: ${{ secrets.PlatformCliToken }}\n  ssh-private-key: ${{ secrets.PlatformSshKey }}\n  php-version: 8.1\n  force-push: true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelerant%2Fplatformsh-deploy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxelerant%2Fplatformsh-deploy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelerant%2Fplatformsh-deploy-action/lists"}