{"id":21622268,"url":"https://github.com/alexcnichols/create-deployment","last_synced_at":"2026-04-15T18:32:31.006Z","repository":{"id":44837497,"uuid":"221834199","full_name":"alexcnichols/create-deployment","owner":"alexcnichols","description":"An Action to create deployments via the GitHub Deployment API","archived":false,"fork":false,"pushed_at":"2023-01-04T13:16:59.000Z","size":1053,"stargazers_count":2,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T16:55:00.641Z","etag":null,"topics":["actions","deployment","deployment-automation","github","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/alexcnichols.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}},"created_at":"2019-11-15T03:12:26.000Z","updated_at":"2023-03-25T16:59:09.000Z","dependencies_parsed_at":"2023-02-02T13:45:20.162Z","dependency_job_id":null,"html_url":"https://github.com/alexcnichols/create-deployment","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"3c5cc1a9544d84fb48dbcb6011928e601f21561b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"actions/javascript-action","purl":"pkg:github/alexcnichols/create-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcnichols%2Fcreate-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcnichols%2Fcreate-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcnichols%2Fcreate-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcnichols%2Fcreate-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcnichols","download_url":"https://codeload.github.com/alexcnichols/create-deployment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcnichols%2Fcreate-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","deployment","deployment-automation","github","github-actions"],"created_at":"2024-11-25T00:08:11.437Z","updated_at":"2026-04-15T18:32:30.979Z","avatar_url":"https://github.com/alexcnichols.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action - Deployments API\n\nThis GitHub Action (written in JavaScript) wraps the [GitHub Deployment API](https://developer.github.com/v3/repos/deployments/), specifically the [Create a deployment](https://developer.github.com/v3/repos/deployments/#create-a-deployment) endpoint, to allow you to leverage GitHub Actions to create deployments.\n\n\u003ca href=\"https://github.com/alexcnichols/create-deployment\"\u003e\u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/alexcnichols/create-deployment/workflows/CI/badge.svg\"\u003e\u003c/a\u003e\n\n## Usage\n\n### Pre-requisites\n\nCreate a workflow `.yml` file in your repository's `.github/workflows` directory. An [example workflow](#example-workflow---create-a-deployment) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).\n\n### Inputs\n\nFor more information on these inputs, see the [API Documentation](https://developer.github.com/v3/repos/deployments/#create-a-deployment)\n\n- `environment`: Name for the target deployment environment (e.g., `production`, `staging`, `qa`). Default: `production`\n\n### Outputs\n\nFor more information on these outputs, see the [API Documentation](https://developer.github.com/v3/repos/deployments/#create-a-deployment) for an example of what these outputs look like\n\n- `id`: The deployment ID\n\n### Example workflow - create a deployment\n\nOn every `push` to a tag matching the pattern `v*`, [create a deployment](https://developer.github.com/v3/repos/deployments/#create-a-deployment):\n\n```yaml\non:\n  push:\n    # Sequence of patterns matched against refs/tags\n    tags:\n      - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10\n\nname: Create Deployment\n\njobs:\n  build:\n    name: Create Deployment\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@master\n      - name: Create Deployment\n        id: create_deployment\n        uses: alexcnichols/create-deployment@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token\n        with:\n          environment: production\n```\n\nThis will create a [Deployment](https://help.github.com/en/github/administering-a-repository/viewing-deployment-activity-for-your-repository). This uses the `GITHUB_TOKEN` provided by the [virtual environment](https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#github_token-secret), so no new token is needed.\n\n## Contributing\n\nWe would love you to contribute to `@alexcnichols/create-deployment`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcnichols%2Fcreate-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcnichols%2Fcreate-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcnichols%2Fcreate-deployment/lists"}