-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathlocal-build.sh
More file actions
24 lines (20 loc) · 837 Bytes
/
local-build.sh
File metadata and controls
24 lines (20 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -ex
export DEPLOY_REPO_NAME=oneclick/rubyinstaller2-packages
export DEPLOY_TAG=ci.ri2
if [[ ${DEPLOY_TOKEN:0:2} != "gh" ]] ; then echo "DEPLOY_TOKEN has no valid access token"; exit 1; fi
source ../ci-library.sh
rm -f snapshot-master.tar.xz
rm -f *.pkg.tar.zst *.pkg.tar.zst.sig
makepkg-mingw --noconfirm --nocheck --syncdeps --rmdeps --cleanbuild --sign -f
rm -rf artifacts
mkdir -p artifacts
cp *.pkg.tar.zst *.pkg.tar.zst.sig artifacts/
cd artifacts/
rm -f ci.ri2.*
export DEPLOY_LOCK=$(ruby -e 'puts rand')
rake upload:lock
create_pacman_repository 'ci.ri2'
cd ../..
rake upload -- $OLDPWD/*.pkg.tar.zst $OLDPWD/*.pkg.tar.zst.sig $OLDPWD/*.db.tar.zst $OLDPWD/*.db.tar.zst.sig $OLDPWD/*.db $OLDPWD/*.db.sig $OLDPWD/*.files.tar.zst $OLDPWD/*.files.tar.zst.sig $OLDPWD/*.files $OLDPWD/*.files.sig
rake upload:unlock