-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoot
80 lines (52 loc) · 1.94 KB
/
foot
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: '*'
path: .
merge-multiple: true
- run: ls
- run: |
set -ex
TAGNAME="$(date +%Y.%m.%d)"
sed -i "s|@TAGNAME@|$TAGNAME|" *.yml
mv *.yml formula/
DIRNAME="uppm-formula-repository-android-aarch64-$TAGNAME"
install -d "$DIRNAME"
cp -r formula "$DIRNAME/"
tar cvJf "$DIRNAME.tar.xz" "$DIRNAME"
sha256sum *.tar.xz > sha256sums.txt
cat > notes.md <<EOF
these packages are created by [ndk-pkg](https://github.com/leleliu008/ndk-pkg).
these packages are fully statically linked.
these packages are relocatable which means that you can install them to anywhere.
## Environment Variables
**following environment variables should be set for \`git\` package**
\`\`\`bash
export GIT_EXEC_PATH="\$GIT_INSTALL_DIR/libexec/git-core"
export GIT_TEMPLATE_DIR="\$GIT_INSTALL_DIR/share/git-core/templates"
\`\`\`
**following environment variables should be set for \`file\` package**
\`\`\`bash
export MAGIC="\$FILE_INSTALL_DIR/share/misc/magic.mgc"
\`\`\`
## sha256sum
\`\`\`
$(cat sha256sums.txt)
\`\`\`
EOF
gh release create "$TAGNAME" sha256sums.txt --title "$TAGNAME" --notes-file notes.md
for f in *.tar.xz
do
sleep 1s
gh release upload "$TAGNAME" "$f"
done
git config --global user.name "leleliu008"
git config --global user.email "[email protected]"
git pull
git add formula
git commit -m "release new version $TAGNAME"
git push origin master