aboutsummarylogtreecommitdiffstats
path: root/.travis-deploy.sh
blob: fa01b96518a4bf77323720a6ac8f17e9f8536161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
  echo "Pull request, skipping publication to aur"
  exit 0
fi

mkdir -p ~/.ssh
echo -e "Host aur.archlinux.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
mv id_rsa ~/.ssh/
chmod 600 ~/.ssh/id_rsa
git remote add aur git+ssh://aur@aur.archlinux.org/home-assistant.git

echo "Pushing to AUR"

git push aur HEAD:master