We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e7fb00 commit 8690c86Copy full SHA for 8690c86
scripts/build.sh
@@ -1,11 +1,12 @@
1
#!/bin/bash
2
-set -e
+set -ex
3
4
ORIGINAL_PATH=$PWD
5
SERVER_PATH=/tmp/server
6
7
git clone git://github.com/Graylog2/graylog2-server.git $SERVER_PATH
8
cd $SERVER_PATH
9
+SERVER_SHA=$(git rev-parse HEAD)
10
mvn -f graylog2-server/pom.xml clean frontend:install-node-and-yarn frontend:yarn
11
12
cd graylog2-web-interface
@@ -16,9 +17,10 @@ node ./node/yarn/dist/bin/yarn.js run docs:build
16
17
18
cd $ORIGINAL_PATH
19
git checkout gh-pages
20
+rm -r ./*
21
cp -r $SERVER_PATH/graylog2-web-interface/docs/styleguide/* ./
22
git add -A
-git commit -m "Update website"
23
+git commit -m "Update website to $SERVER_SHA"
24
git push origin gh-pages
25
26
exit 0
0 commit comments