summarylogtreecommitdiffstats
path: root/publish.sh
blob: 34b6c528fce68813130ca7462eee6aa2bce48fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/bash

set -e # exit on error

./clean.sh

# run tests first
dotnet test -c Test

# update SRCINFO
makepkg --printsrcinfo > .SRCINFO
(git add .SRCINFO && git commit -m "SRCINFO" && git push) || (echo "Failed to commit .SRCINFO" >&2 | return)

# build the executable
makepkg -f --noconfirm

# push to aur
if [ -z "$(git remote | grep aur)" ]; then
  git remote add aur ssh://aur@aur.archlinux.org/rgx-git.git
fi
git push aur