Skip to content

Commit 8314181

Browse files
authored
fix: Simplify base64 decoding and change file name in arguments. (#9)
Signed-off-by: Josh <36625023+JoshuaBrest@users.noreply.github.com>
1 parent 8ede629 commit 8314181

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ jobs:
9090
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
9191
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
9292
run: |
93-
echo $PUBLIC_KEY > public.key
94-
echo $PRIVATE_KEY > private.key
95-
cat public.key | base64 -d > public.pem
96-
cat private.key | base64 -d > private.pem
93+
echo "$PUBLIC_KEY" | base64 -d > public.pem
94+
echo "$PRIVATE_KEY" | base64 -d > private.pem
9795
- name: Create Release
9896
working-directory: ./ci
9997
env:
@@ -112,10 +110,15 @@ jobs:
112110
--uuid $UUID \
113111
--package $(deno run -q ci get-path --package darwin-arm64) \
114112
--branch $BRANCH \
115-
--public-key public.key \
116-
--private-key private.key \
113+
--public-key public.pem \
114+
--private-key private.pem \
117115
--target-operating-system macOS \
118116
--target-architecture arm64
117+
118+
if [ $? -ne 0 ]; then
119+
echo "Failed to add package to release"
120+
exit 1
121+
fi
119122
- name: Remove keys
120123
working-directory: ./ci
121124
run: |

0 commit comments

Comments
 (0)