{"id":13473813,"url":"https://github.com/cpilsworth/cloudflare-worker-action","last_synced_at":"2025-03-26T19:34:48.377Z","repository":{"id":144714898,"uuid":"159885765","full_name":"cpilsworth/cloudflare-worker-action","owner":"cpilsworth","description":"GitHub action for deploying a worker to Cloudflare","archived":false,"fork":false,"pushed_at":"2018-12-01T12:12:48.000Z","size":21,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T06:33:31.922Z","etag":null,"topics":["cloudflare-worker","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/cpilsworth.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-30T22:33:34.000Z","updated_at":"2024-01-09T13:17:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea5d6dd5-16d3-4066-884f-137a1fd963c7","html_url":"https://github.com/cpilsworth/cloudflare-worker-action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpilsworth%2Fcloudflare-worker-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpilsworth%2Fcloudflare-worker-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpilsworth%2Fcloudflare-worker-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpilsworth%2Fcloudflare-worker-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpilsworth","download_url":"https://codeload.github.com/cpilsworth/cloudflare-worker-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245722942,"owners_count":20661853,"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":["cloudflare-worker","github-actions"],"created_at":"2024-07-31T16:01:07.134Z","updated_at":"2025-03-26T19:34:46.752Z","avatar_url":"https://github.com/cpilsworth.png","language":"Makefile","funding_links":[],"categories":["Community Resources","Workers","Uncategorized","Makefile"],"sub_categories":["Deployment","Tools","Uncategorized"],"readme":"# Cloudflare Worker GitHub Action\n\n[![Build Status](https://travis-ci.org/cpilsworth/cloudflare-worker-action.svg?branch=master)](https://travis-ci.org/cpilsworth/cloudflare-worker-action)\n\nA GitHub action to deploy a Cloudflare Worker on push to the master branch. \n\n```hcl\nworkflow \"on push to master, deploy worker to Cloudflare\" {\n  on = \"push\"\n  resolves = [\"worker deploy\"]\n}\n\naction \"worker deploy\" {\n  uses = \"cpilsworth/cloudflare-worker-action@master\"\n  env = {\n    CLOUDFLARE_EMAIL = \"you@example.com\",\n    CLOUDFLARE_ZONE = \"diffa.co.uk\",\n    WORKER_JS = \"bin/worker.js\",\n  }\n  secrets = [ \"CLOUDFLARE_TOKEN\" ]\n}\n```\n\n_Heavily_ inspired by [Jessie Frazelle's](https://twitter.com/jessfraz) [aws-fargate-action](https://github.com/jessfraz/aws-fargate-action) GitHub action project. :trophy:\n\n### Tests\n\nThe tests use [shellcheck](https://github.com/koalaman/shellcheck). You don't\nneed to install anything. They run in a container. \n\n```console\n$ make test\n```\n\n### Using the `Makefile`\n\n```console\n$ make help\ncf-apply                      Run terraform apply for Amazon.\ncf-destroy                    Run terraform destroy for Amazon.\ncf-plan                       Run terraform plan for Amazon.\nshellcheck                     Runs the shellcheck tests on the scripts.\ntest                           Runs the tests on the repository.\nupdate-terraform               Update terraform binary locally from the docker container.\nupdate                         Update terraform binary locally.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpilsworth%2Fcloudflare-worker-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpilsworth%2Fcloudflare-worker-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpilsworth%2Fcloudflare-worker-action/lists"}