File: publish-gh-pages.sh

package info (click to toggle)
ruby-parslet 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,260 kB
  • sloc: ruby: 6,157; sh: 8; javascript: 3; makefile: 3
file content (5 lines) | stat: -rwxr-xr-x 218 bytes parent folder | download
1
2
3
4
5
#!/bin/bash
doc_sha=$(git ls-tree -d HEAD build | awk '{print $3}')
git cat-file -p $doc_sha
new_commit=$(echo "Auto-update docs." | git commit-tree $doc_sha -p gh-pages)
git update-ref refs/heads/gh-pages $new_commit