File: publish.sh

package info (click to toggle)
owslib 0.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,892 kB
  • sloc: xml: 136,921; python: 17,655; makefile: 165; sh: 11
file content (16 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# this script publishes Sphinx outputs to github pages
THIS_DIR=`pwd`

make clean && make html
git clone git@github.com:geopython/OWSLib.git /tmp/OWSLib-$$
cd /tmp/OWSLib-$$
git checkout gh-pages
/bin/cp -rp $THIS_DIR/build/html/en/* .
git add .
git commit -am "update live docs [ci skip]"
git push origin gh-pages

cd $THIS_DIR
rm -fr /tmp/OWSLib-$$