{"id":16830144,"url":"https://github.com/robindaugherty/deployments-example","last_synced_at":"2026-02-02T19:36:48.793Z","repository":{"id":47233936,"uuid":"401717156","full_name":"RobinDaugherty/deployments-example","owner":"RobinDaugherty","description":"Use Actions to automate deployments","archived":false,"fork":false,"pushed_at":"2021-09-07T17:24:28.000Z","size":28,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T22:47:22.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/RobinDaugherty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-31T13:40:16.000Z","updated_at":"2021-09-03T21:15:27.000Z","dependencies_parsed_at":"2022-07-22T05:32:17.158Z","dependency_job_id":null,"html_url":"https://github.com/RobinDaugherty/deployments-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RobinDaugherty/deployments-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinDaugherty%2Fdeployments-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinDaugherty%2Fdeployments-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinDaugherty%2Fdeployments-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinDaugherty%2Fdeployments-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinDaugherty","download_url":"https://codeload.github.com/RobinDaugherty/deployments-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinDaugherty%2Fdeployments-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260927232,"owners_count":23083982,"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-10-13T11:37:39.021Z","updated_at":"2026-02-02T19:36:43.771Z","avatar_url":"https://github.com/RobinDaugherty.png","language":null,"readme":"# GitHub Deployments using Actions\n\nA project to build and demonstrate the use of GitHub Deployments from within GitHub Actions.\n\nDeployments are controlled by the creation of a GitHub deployment, which causes another workflow job to run.\n\nThe deployment object is created by the GitHub Actions workflow.\nGitHub specifically disallows the result of an Actions workflow run auth token from starting another workflow run.\nTo work around this, the API calls that create the Deployment must use the credentials of a GitHub App (which we'll call a \"bot\").\n\nCreate a GitHub App and create a private key for it.\nAdd the app ID and the private key as secrets to the repository.\nAnd install the app on the repository.\n\n## Test environments\n\nThese are deployed from a pull request, where each pull request gets a unique deployment environment.\n\n- \"Create\" job: When a pull request is opened with the `deploy to spicy-proton` label, or it is added later\n  - creates a Deployment for the current commit\n- \"Destroy\" job: When a pull request is closed or the `deploy to spicy-proton` label is removed\n  - any previous run of this workflow is canceled so that no deployment process completes\n  - the Deployment is set to \"inactive\" state\n- \"Deploy\" job: When a Deployment is created\n  - deploys!\n  - updates the status of the deployment to indicate success or failure\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobindaugherty%2Fdeployments-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobindaugherty%2Fdeployments-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobindaugherty%2Fdeployments-example/lists"}