-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.rultor.yml
33 lines (33 loc) · 1019 Bytes
/
.rultor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
docker:
image: yegor256/blog
assets:
id_rsa: "yegor256/home#assets/blog/id_rsa"
id_rsa.pub: "yegor256/home#assets/blog/id_rsa.pub"
install: |
sudo gem install pdd -v 0.20.5
npm --no-color install
merge:
script: |
pdd -f /dev/null -v
./node_modules/grunt/bin/grunt --no-color
release:
pre: false
script: |
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
sed -i "s/0\.0\.0/${tag}/g" package.json
git add package.json
git commit -m "version set to ${tag}"
mkdir ~/.ssh
mv ../id_rsa ../id_rsa.pub ~/.ssh
chmod -R 600 ~/.ssh/*
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config
git config --global user.email "[email protected]"
git config --global user.name "Rultor"
temp=$(mktemp -d)
./node_modules/grunt/bin/grunt --no-color --buildDir=${temp}
git checkout gh-pages
git clean -fd
cp -R ${temp}/* .
git add .
git commit -am "New web front, version ${tag}"
git push origin gh-pages