File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 46
46
CODESIGN_IDENTITY : ${{ secrets.MACOS_CODESIGN_IDENTITY }}
47
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
48
49
- - name : Hash
50
- run : sha256sums ./out/* > sha256.txt
51
-
52
49
- name : Get Tag Name
53
50
shell : bash
54
51
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
66
63
uses : softprops/action-gh-release@v2
67
64
with :
68
65
files : |
69
- ./*.tar.gz
70
66
./out/*
71
- ./sha256.txt
72
67
body_path : ./sha256.txt
73
68
draft : false
74
69
prerelease : false
Original file line number Diff line number Diff line change 1
1
# /bin/sh
2
2
3
- set -e
3
+ set -ex
4
4
5
5
export WORK=` pwd`
6
6
7
+ if [ -z " $CODESIGN_IDENTITY " ]; then
8
+ export CODESIGN_IDENTITY=" -"
9
+ fi
10
+
7
11
rm -rf ./out
8
12
mkdir -p ./out
9
13
export GOARCH=arm64
@@ -44,4 +48,12 @@ codesign --force --sign $CODESIGN_IDENTITY --timestamp --entitlements krunkit.en
44
48
find $WORK /out -name " *.dylib" -type f -exec sh -c " echo 'Signing {}...'; codesign --force --sign $CODESIGN_IDENTITY --timestamp {}" ' ;'
45
49
46
50
# pack
47
- tar -czvf ./libexec-$GOOS -$GOARCH .tar.gz -C ./out/ .
51
+ echo " Packing..."
52
+ cd $WORK /out
53
+ tar -czvf ./libexec-$GOOS -$GOARCH .tar.gz .
54
+
55
+ # generate sha256
56
+ cd $WORK /out
57
+ echo " Generating sha256..."
58
+ shasum -a 256 ./* > sha256.txt
59
+ cat ./sha256.txt
You can’t perform that action at this time.
0 commit comments