{"id":21183456,"url":"https://github.com/jgleitz/travis-deploy-gh-pages","last_synced_at":"2025-10-07T11:51:33.240Z","repository":{"id":76096454,"uuid":"61365854","full_name":"jGleitz/travis-deploy-gh-pages","owner":"jGleitz","description":"Language agnostic bash script to deploy to gh-pages from Travis","archived":false,"fork":false,"pushed_at":"2023-12-15T20:27:07.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T19:52:16.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/jGleitz.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-17T10:24:24.000Z","updated_at":"2019-02-19T11:21:01.000Z","dependencies_parsed_at":"2024-11-20T18:00:36.222Z","dependency_job_id":"22b905b7-8b30-4c96-8382-7843ec3e22a0","html_url":"https://github.com/jGleitz/travis-deploy-gh-pages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jGleitz/travis-deploy-gh-pages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Ftravis-deploy-gh-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Ftravis-deploy-gh-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Ftravis-deploy-gh-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Ftravis-deploy-gh-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jGleitz","download_url":"https://codeload.github.com/jGleitz/travis-deploy-gh-pages/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Ftravis-deploy-gh-pages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278770356,"owners_count":26042826,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-20T18:00:27.983Z","updated_at":"2025-10-07T11:51:33.223Z","avatar_url":"https://github.com/jGleitz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy to gh-pages from Travis [![Build Status](https://travis-ci.org/jGleitz/travis-deploy-gh-pages.svg?branch=master)](https://travis-ci.org/jGleitz/travis-deploy-gh-pages)\nBash script to deploy to `gh-pages` from Travis.\n\n## Features\n- **Easy to set up**. Just add one line to your `.travis.yml` and set up your GitHub Token.\n- **Language agnostic**. Because it just works on files, this script can be used for any project.\n- **Branch folders**. `master`’s artifacts are put on the top level. Other branches are put into a `branches` directory. This means:\n   - Deployment for all branches. If you are developing a feature in a branch, you can already have its artifacts published (and e.g. link to them from a PR)\n   - Branches don’t override `master`’s artifacts. The main artifacts you link to are always from `master`\n- **Secure**. The script will never print your credentials. \n  \n## Usage\n\n#### Add a github token:\n1. Go to [your GitHub Token settings page](https://github.com/settings/tokens) and hit “Generate new Token”. Enable the scope `public_repo`. Copy the token.\n2. Go to your Travis settings and create a new Environment variable called `GH_TOKEN`. Paste the token generated in 1. as the value. Leave “Display value in build log” switched off!\n\n#### Add the script to your `.travis.yml`:\n\n```yaml\nafter_success:\n - bash \u003c(curl -s https://jgleitz.github.io/travis-deploy-gh-pages/deploy.sh) path/to/artifact1 path/to/artifact2\n```\n\nReplace the paths with the paths to your artifacts.\n\n## Details\nAdding the above to your `.travis.yml` will download and execute this project’s script. The script will:\n - either checkout your existing `gh-pages` branch or create a new one.\n - create a default `README.md`, linking to your GitHub Pages. You can overwrite this file by passing your own `README.md` to the script.\n - remove files checked out.\n - remove all folders in the `branches` directory corresponding to deleted branches.\n - copy in your files by passing its arguments to `rm -r`. If the build is on the `master` branch, the files will be put on the top level. Otherwise, they will be put into the `branches/$branchName` folder.\n - commit and push back to GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgleitz%2Ftravis-deploy-gh-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgleitz%2Ftravis-deploy-gh-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgleitz%2Ftravis-deploy-gh-pages/lists"}