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