aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/daily-jjb-doc-update/include-doc-upload.sh
blob: 116f703f3c99bdc7cda1d6eb1f79c341f9b91fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# publish the docs
pushd webdocs-agl
  git clone -b gh-pages git@github.com:automotive-grade-linux/docs-agl.git upload-gh-pages
  cp -ar build-dev/* upload-gh-pages/
  pushd upload-gh-pages
    git config user.name build.automotivelinux.org
    git config user.email jenkins@automotivelinux.org
    git diff
    git add .
    git commit --amend -m"Render: $(date)"
    git push origin gh-pages:gh-pages -f
  popd
popd