forked from ImSpiDy/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreupload.sh
More file actions
45 lines (40 loc) · 1.57 KB
/
reupload.sh
File metadata and controls
45 lines (40 loc) · 1.57 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
#
# login
git config --global user.name "ImSpiDy"
git config --global user.email "[email protected]"
echo $gh_token > mytoken.txt # login in github
gh auth login --with-token < mytoken.txt
# login sfg (circle ci variable isn't working as intend"
echo "-----BEGIN OPENSSH PRIVATE KEY-----" > mysfgtoken.txt
echo $SFG1 >> mysfgtoken.txt
echo $SFG2 >> mysfgtoken.txt
echo $SFG3 >> mysfgtoken.txt
echo $SFG4 >> mysfgtoken.txt
echo $SFG5 >> mysfgtoken.txt
echo "-----END OPENSSH PRIVATE KEY-----" >> mysfgtoken.txt
chmod 600 mysfgtoken.txt
ssh-keyscan frs.sourceforge.net >> ~/.ssh/known_hosts
# release
SFG=0
GHR=1
DL_TAG=AxionOS-15-4.19
UP_TAG=AxionOS-15-4.19
VANILLA=axion-1.4-NIGHTLY-20250516-COMMUNITY-VANILLA-lavender.zip
GAPPS=axion-1.4-NIGHTLY-20250516-COMMUNITY-GMS-lavender.zip
# download tested builds
gh release download $DL_TAG -p $VANILLA -R https://github.com/ImSpiDy/Test-Builds
gh release download $DL_TAG -p $GAPPS -R https://github.com/ImSpiDy/Test-Builds
if [ $SFG == 1 ]; then
if [ -f *VANILLA* ]; then
scp -i mysfgtoken.txt *VANILLA*.zip [email protected]:/home/frs/p/infinity-x/lavender/15/vanilla/
fi
if [ -f *GAPPS* ]; then
scp -i mysfgtoken.txt *GAPPS*.zip [email protected]:/home/frs/p/infinity-x/lavender/15/gapps/
fi
fi
if [ $GHR == 1 ]; then
# upload release builds
gh release create $UP_TAG --generate-notes --repo https://github.com/ImSpiDy/build-release
gh release upload --clobber $UP_TAG *.zip --repo https://github.com/ImSpiDy/build-release
fi