Advertisement
Kripth

Untitled

Jan 17th, 2018
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. #!/bin/bash
  2. curl http://downloads.dlang.org/releases/2.x/2.078.0/dmd_2.078.0-0_amd64.deb
  3. dpkg -i dmd_2.078.0-0_amd64.deb
  4. dub build --build=docs
  5. PROJECT_TAG=$(git describe --tags)
  6. if [[ $PROJECT_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
  7.     git clone https://github.com/sel-project/sel-project.github.io.git website
  8.     if [ -d "docs/src" ] ; then mv -r docs/src/ website/docs/
  9.     elif [ -d "docs/source" ] ; then mv -r docs/source/ website/docs/
  10.     elif [ -d "docs" ] ; then mv -r docs/ website/docs/
  11.     fi
  12.     cd website
  13.     git add --all .
  14.     git config user.email "selutils@gmail.com"
  15.     git config user.name "sel-bot"
  16.     git commit -m "Update documentation for ${SEMAPHORE_PROJECT_NAME} ${PROJECT_TAG}"
  17.     git push "https://${BOT_KEY}@github.com/sel-project/sel-project.github.io"
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement