File: update-docs.sh

package info (click to toggle)
rust-xkbcommon-dl 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 120 kB
  • sloc: sh: 14; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -o errexit -o nounset

: ${TRAVIS:?"This should only be run on Travis CI."}

rev=$(git rev-parse --short HEAD)

git init
git config user.name "Francesca Frangipane"
git config user.email "francesca@comfysoft.net"

git remote add upstream "https://$GH_TOKEN@github.com/francesca64/xkbcommon-dl.git"
git fetch upstream
git reset upstream/gh-pages

rm -rf docs
mv target/doc docs

git add -A docs
git commit -m "Updated docs for ${rev}"
git push --force --quiet upstream HEAD:gh-pages