Skip to content

Commit 265306e

Browse files
MacbookMacbook
authored andcommitted
test add github release [openvpnadapter]
1 parent 5605d4e commit 265306e

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/build_openvpnadapter_apple.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,25 @@ jobs:
133133
with:
134134
name: OpenVPNAdapter-ios
135135
path: openvpnadapter-ios/
136-
136+
137137
- name: Setup | Generate Checksums
138138
run: |
139-
for file in $(find ./ -type f -name '*.framework' -o -name '*.dylib'); do
140-
openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"
141-
done
139+
find openvpnadapter-mac/ openvpnadapter-ios/ \
140+
-type f \( -name '*.framework' -o -name '*.dylib' \) \
141+
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
142142
143-
- name: Zip macOS and iOS Artifacts
143+
- name: Zip macOS Artifacts
144144
run: |
145145
zip -r openvpnadapter-mac.zip openvpnadapter-mac/
146+
shell: bash
147+
148+
- name: Zip iOS Artifacts
149+
run: |
146150
zip -r openvpnadapter-ios.zip openvpnadapter-ios/
151+
shell: bash
152+
153+
- name: List Generated Files
154+
run: ls -l
147155

148156
- name: Upload Binaries to GitHub Release
149157
uses: svenstaro/upload-release-action@v2
@@ -154,4 +162,4 @@ jobs:
154162
file: |
155163
openvpnadapter-mac.zip
156164
openvpnadapter-ios.zip
157-
file_glob: false
165+
file_glob: false

0 commit comments

Comments
 (0)