{"id":15288619,"url":"https://github.com/lwojcik/github-action-deploy-static-site","last_synced_at":"2026-01-05T03:09:21.929Z","repository":{"id":180548413,"uuid":"665290086","full_name":"lwojcik/github-action-deploy-static-site","owner":"lwojcik","description":"GitHub Action for deploying static site on Netlify or Vercel via build hook. Skips deployment if no changes are detected.","archived":false,"fork":false,"pushed_at":"2024-03-26T22:38:54.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T22:03:46.668Z","etag":null,"topics":["deploy","deployment","github-action","github-actions","netlify","vercel"],"latest_commit_sha":null,"homepage":"","language":null,"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/lwojcik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"lwojcik","ko_fi":"lukem","liberapay":"lukem","patreon":"lukem_tt"}},"created_at":"2023-07-11T21:56:58.000Z","updated_at":"2024-08-22T19:59:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"985f581b-8771-4d1e-934c-3b4135f2948b","html_url":"https://github.com/lwojcik/github-action-deploy-static-site","commit_stats":null,"previous_names":["lwojcik/github-action-deploy-static-site"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwojcik%2Fgithub-action-deploy-static-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwojcik%2Fgithub-action-deploy-static-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwojcik%2Fgithub-action-deploy-static-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwojcik%2Fgithub-action-deploy-static-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwojcik","download_url":"https://codeload.github.com/lwojcik/github-action-deploy-static-site/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244728194,"owners_count":20500023,"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","deployment","github-action","github-actions","netlify","vercel"],"created_at":"2024-09-30T15:51:22.134Z","updated_at":"2026-01-05T03:09:16.911Z","avatar_url":"https://github.com/lwojcik.png","language":null,"funding_links":["https://github.com/sponsors/lwojcik","https://ko-fi.com/lukem","https://liberapay.com/lukem","https://patreon.com/lukem_tt"],"categories":[],"sub_categories":[],"readme":"# GitHub Action: Deploy Static Site to Netlify or Vercel\n\nThis GitHub Action deploys your static site to Netlify or Vercel by triggering a build hook from the convenience of your GitHub repository. You can also set it up to run by cron.\n\nThe Action will skip deployment when no changes are detected since the last run. To store the commit id of the current deployment GitHub cache mechanism is used.\n\nYou can also pass `always_deploy` set to `true` to trigger deployment without checking for changes.\n\n## Usage with Netlify\n\nTo obtain build hook URL:\n\n1. Sign in with Netlify.\n2. Select the site you want to deploy. Go to _Site configuration_.\n3. Select _Build \u0026 deploy_.\n4. Scroll down to _Build hooks_ and click _Add build hook_.\n5. Enter a descriptive name of your hook and click _Save_.\n6. Your webook URL has the following format: `https://api.netlify.com/build_hooks/12345679abcdef`. You shouldn't share it with anyone else. I recommend saving it in _Secrets and variables_ section of your GitHub repository settings.\n7. Create your workflow as follows:\n\n```yaml\nname: Deploy static site\non:\n  workflow_dispatch:\n\njobs:\n  DeploySite:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy site\n        uses: lwojcik/github-action-deploy-static-site@v1\n        with:\n          platform: netlify\n          netlify_deploy_hook_url: ${{ secrets.NETLIFY_DEPLOY_HOOK_URL }}\n          # always_deploy: true - if you want to skip checking for changes\n```\n\n## Usage with Vercel\n\nTo disable automatic builds and obtain build hook URL:\n\n1. Sign in with Vercel.\n2. Select the project you want to deploy. Go to _Settings_.\n3. Select _Git_. Head to _Deploy Hooks_ section and create a new hook.\n4. Your webhook URL has the following format: `https://api.vercel.com/v1/integrations/deploy/12345679abcdef`. You shouldn't share it with anyone else. I recommend saving it in _Secrets and variables_ section of your GitHub repository settings.\n5. Create your workflow as follows:\n\n```yaml\nname: Deploy static site\non:\n  workflow_dispatch:\n\njobs:\n  DeploySite:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy site\n        uses: lwojcik/github-action-deploy-static-site@v1\n        with:\n          platform: vercel\n          vercel_deploy_hook_url: ${{ secrets.VERCEL_DEPLOY_HOOK_URL }}\n          # always_deploy: true - if you want to skip checking for changes\n```\n\n## License\n\nLicensed under MIT License. See [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwojcik%2Fgithub-action-deploy-static-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwojcik%2Fgithub-action-deploy-static-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwojcik%2Fgithub-action-deploy-static-site/lists"}