Skip to content

Commit 090e91c

Browse files
author
crystal
committed
add sha256
1 parent 690aeb4 commit 090e91c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.ci-sha256.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
if [ $CI_COMMIT_TAG ] ; then
4+
for f in $1-$CI_COMMIT_TAG.zip ; do
5+
sha256sum $f > $f.sha256
6+
done
7+
else
8+
for f in $1-.zip ; do
9+
sha256sum $f > $f.sha256
10+
done
11+
fi
12+
for f in *.sha256 ; do
13+
echo $f
14+
cat $f
15+
done

.crystalintegration.yml

+6
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ steps:
3434
- ./.ci-make.sh magisk-prep
3535
- ./.ci-make.sh magisk-zip
3636

37+
gen-sha256:
38+
image: sc.cryxtal.org/ci-img/git-curl-jq:latest
39+
commands:
40+
- ./.ci-sha256.sh magisk-twemoji
41+
3742
upload-crystalcommit:
3843
image: woodpeckerci/plugin-gitea-release
3944
settings:
4045
base_url: https://sc.cryxtal.org
4146
files:
4247
- "magisk-twemoji-*.zip"
48+
- "magisk-twemoji-*.zip.sha256"
4349
api_key:
4450
from_secret: sc_api_key
4551
prerelease: true

0 commit comments

Comments
 (0)