
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
git-update-ghpages
Advanced tools
Uploads a directory to gh-pages. Perfect for use with Travis-CI deployments.
git-update-ghpages rstacruz/myproject _docs
==> cd /var/folders/7d/tmp.9dgEYWLD
==> git init
Initialized empty repository in /var/folders/7d/tmp.9dgEYWLD
==> git checkout -b gh-pages
Switch to a new branch 'gh-pages'
==> Copying contents from _docs
x index.html
x license.html
x contributing.html
==> git commit -m Update
[gh-pages 06829a94] Update
16 files changed, 16085 insertions(+)
==> git push https://github.com/rstacruz/myproject.git gh-pages
==> rm -rf /var/folders/7d/tmp.9dgEYWLD
==> Done.
You can use Travis to automatically deploy your static website to GitHub pages.
Make sure Travis is already enabled on your repository. Generate a GitHub token and add it to your repo.
# gem install travis
travis encrypt GITHUB_TOKEN=... --add
Add this to your .travis.yml manifest. This will make a build happen after your test, then a deployment right after that. In this example, we're deploying _docs to user/repo.
script:
- npm test # ...or whatever your test command is
- make build # ...or whatever your build command is
- npm install git-update-ghpages
- ./node_modules/.bin/git-update-ghpages --author="Travis CI <nobody@nobody.org>" user/repo _docs
FAQs
Update GitHub pages from the command line
The npm package git-update-ghpages receives a total of 139 weekly downloads. As such, git-update-ghpages popularity was classified as not popular.
We found that git-update-ghpages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.