{"id":13533518,"url":"https://github.com/yavisht/deploy-via-surge.sh-github-action-template","last_synced_at":"2025-04-01T21:32:25.650Z","repository":{"id":41988610,"uuid":"212839609","full_name":"yavisht/deploy-via-surge.sh-github-action-template","owner":"yavisht","description":"A simple Github Actions template to deploy your static site using surge.sh","archived":false,"fork":false,"pushed_at":"2023-10-12T01:33:48.000Z","size":13,"stargazers_count":86,"open_issues_count":0,"forks_count":13,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T19:13:26.016Z","etag":null,"topics":["deployment","devops","frontend","github-actions","javascript","static-site","surge","surge-sh"],"latest_commit_sha":null,"homepage":"https://test-github-action-surge.surge.sh","language":"HTML","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/yavisht.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}},"created_at":"2019-10-04T14:55:40.000Z","updated_at":"2025-01-01T07:31:36.000Z","dependencies_parsed_at":"2024-01-02T21:53:15.640Z","dependency_job_id":null,"html_url":"https://github.com/yavisht/deploy-via-surge.sh-github-action-template","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/yavisht%2Fdeploy-via-surge.sh-github-action-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yavisht%2Fdeploy-via-surge.sh-github-action-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yavisht%2Fdeploy-via-surge.sh-github-action-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yavisht%2Fdeploy-via-surge.sh-github-action-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yavisht","download_url":"https://codeload.github.com/yavisht/deploy-via-surge.sh-github-action-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246713442,"owners_count":20821889,"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","devops","frontend","github-actions","javascript","static-site","surge","surge-sh"],"created_at":"2024-08-01T07:01:20.621Z","updated_at":"2025-04-01T21:32:25.349Z","avatar_url":"https://github.com/yavisht.png","language":"HTML","funding_links":[],"categories":["Community Resources","HTML"],"sub_categories":["Deployment"],"readme":"\n# Deploy your static website to surge via Github Actions!\nA simple Github Actions template to deploy your static site using surge.sh\n\n**Demo** -\u003e [https://test-github-action-surge.surge.sh/](https://test-github-action-surge.surge.sh/)\n\n**Step 1** Get a Deployment Token\n![get-surge-token](https://user-images.githubusercontent.com/6112201/66218600-d8892080-e70c-11e9-8843-c2c29b4e7e9a.gif)\n\n**Step 2** Setup 2 secrets in your repository secrets tab\n\nSURGE_TOKEN -\u003e Your Surge Token\n123abc123abc123abc\n\nSURGE_DOMAIN -\u003e The domain you want to publish your site on\nhttps://test-github-action-surge.surge.sh\n\n\u003cimg width=\"772\" alt=\"Screen Shot 2019-10-06 at 10 41 48 am\" src=\"https://user-images.githubusercontent.com/6112201/66262115-f5654700-e825-11e9-8afe-98c937ee42f9.png\"\u003e\n\n**Step 3**\nAdd the a new Github Action in .github/workflows folder in your repo\n\n```\nname: Deploy Website\n\non: [push]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    name: Deploying to surge\n    \n    steps:\n      - uses: actions/checkout@v3\n      - uses: actions/setup-node@v3\n        with:\n          node-version: 18\n      - run: npm install -g surge\n      - run: surge ./ ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}\n\n```\n\n**Step 4**\nTest it with a commit\n\u003cimg width=\"1674\" alt=\"Screen Shot 2019-10-05 at 1 05 34 am\" src=\"https://user-images.githubusercontent.com/6112201/66218407-75978980-e70c-11e9-8368-1476cb69253a.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyavisht%2Fdeploy-via-surge.sh-github-action-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyavisht%2Fdeploy-via-surge.sh-github-action-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyavisht%2Fdeploy-via-surge.sh-github-action-template/lists"}