{"id":23447504,"url":"https://github.com/hovancik/middleman-github-deploy","last_synced_at":"2025-04-13T16:12:30.730Z","repository":{"id":56883510,"uuid":"48986689","full_name":"hovancik/middleman-github-deploy","owner":"hovancik","description":"build your Middleman site and push it to your gh-pages branch","archived":false,"fork":false,"pushed_at":"2023-05-07T17:44:59.000Z","size":20,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T16:12:26.141Z","etag":null,"topics":["deployment","github-pages","middleman","middleman-extension"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/hovancik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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":"hovancik","patreon":"hovancik","custom":"https://www.paypal.me/janhovancik"}},"created_at":"2016-01-04T09:19:40.000Z","updated_at":"2022-09-27T22:47:18.000Z","dependencies_parsed_at":"2024-12-23T21:17:58.889Z","dependency_job_id":"9bdeb182-1adf-4063-9173-054fc22cef5c","html_url":"https://github.com/hovancik/middleman-github-deploy","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"26c93748ade252f70e2b39d9dc2a348a137dfaf7"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hovancik%2Fmiddleman-github-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hovancik%2Fmiddleman-github-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hovancik%2Fmiddleman-github-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hovancik%2Fmiddleman-github-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hovancik","download_url":"https://codeload.github.com/hovancik/middleman-github-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741195,"owners_count":21154255,"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","github-pages","middleman","middleman-extension"],"created_at":"2024-12-23T21:17:55.477Z","updated_at":"2025-04-13T16:12:30.711Z","avatar_url":"https://github.com/hovancik.png","language":"Ruby","funding_links":["https://github.com/sponsors/hovancik","https://patreon.com/hovancik","https://www.paypal.me/janhovancik"],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/hovancik/middleman-github-deploy.svg)](https://travis-ci.org/hovancik/middleman-github-deploy)\n[![Gem Version](https://badge.fury.io/rb/mgd.svg)](http://badge.fury.io/rb/mgd)\n[![Dependency Status](https://gemnasium.com/hovancik/middleman-github-deploy.svg)](https://gemnasium.com/hovancik/middleman-github-deploy)\n\n# What is mgd ?\n\nmgd stands for middleman-github-deploy and is a fork of [jgd](https://github.com/yegor256/jekyll-github-deploy).  \n\nmgd will automatically build your Middleman blog and push it to your gh-pages\nbranch (or any other branch of your choice).\n\n# Installation and Usage\n\nIt is assumed that your blog is in the home directory of your repo.\n\nInstall it first:\n\n```bash\ngem install mgd\n```\n\nRun it locally:\n\n```bash\nmgd\n```\n\nNow your site is deployed to `gh-pages` branch of your repo. Done.\n\nPS. You can also specify target branch, with is `gh-pages` by default. Use\n`--branch` command line option.\n\n## Ruby ad rubygems versions\nEverything should work fine with ruby \u003e 2.0.\n\nThere is a bug with rubygems (https://github.com/rubygems/rubygems/issues/1420), so if you're getting error like this:\n\n```\n$ mgd\n/Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #\u003cGem::Specification:0x3fc9e849c75c trollop-2.1.2\u003e (NoMethodError)\n        from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'\n        from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'\n        from /Users/user/.rvm/gems/ruby-2.3.1@gemset/gems/mgd-0.1.0/bin/mgd:4:in `\u003ctop (required)\u003e'\n        from /Users/user/.rvm/gems/ruby-2.3.1@gemset/bin/mgd:23:in `load'\n        from /Users/user/.rvm/gems/ruby-2.3.1@gemset/bin/mgd:23:in `\u003cmain\u003e'\n        from /Users/user/.rvm/gems/ruby-2.3.1@gemset/bin/ruby_executable_hooks:15:in `eval'\n        from /Users/user/.rvm/gems/ruby-2.3.1@gemset/bin/ruby_executable_hooks:15:in `\u003cmain\u003e'\n\n```\n\ncheck what is your gem version, should be higher than 2.6.3:\n\n```\n$ gem --version\n```\n\nyou can update it via:\n\n```\n$ gem update --system  # you might need to be an administrator or root\n```\n\n\n# Deploying with Travis\n\nThis is how you might configure your blog\nto be deployed automatically by [travis-ci](http://www.travis-ci.org):\n\n```yaml\nbranches:\n  only:\n    - master\nenv:\n  global:\n    - secure: ...\ninstall:\n  - bundle\nscript: mgd -u http://yourname:$PASSWORD@github.com/yourname/blog.git\n```\n\nThe environment variable `$PASSWORD` is set through\n`env/global/secure`, as explained\n[here](http://docs.travis-ci.com/user/encryption-keys/).\n\nDon't forget to add `gem require 'mgd'` to your `Gemfile`.\n\nYou can use SSH key instead. First, you should [encrypt](https://docs.travis-ci.com/user/encrypting-files/) it:\n\n```bash\n$ travis encrypt-file id_rsa --add\n```\n\nThen, use the URI that starts with `git@`:\n\n```yaml\nscript:\n  - mgd -u git@github.com:yourname/blog.git\n```\n\nRead also [this article](http://www.yegor256.com/2014/06/22/jekyll-github-deploy.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhovancik%2Fmiddleman-github-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhovancik%2Fmiddleman-github-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhovancik%2Fmiddleman-github-deploy/lists"}