Skip to content

Commit

Permalink
test add github release [openvpnadapter]
Browse files Browse the repository at this point in the history
  • Loading branch information
Macbook authored and Macbook committed Jan 9, 2025
1 parent 5605d4e commit 265306e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build_openvpnadapter_apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,25 @@ jobs:
with:
name: OpenVPNAdapter-ios
path: openvpnadapter-ios/

- name: Setup | Generate Checksums
run: |
for file in $(find ./ -type f -name '*.framework' -o -name '*.dylib'); do
openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"
done
find openvpnadapter-mac/ openvpnadapter-ios/ \
-type f \( -name '*.framework' -o -name '*.dylib' \) \
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
- name: Zip macOS and iOS Artifacts
- name: Zip macOS Artifacts
run: |
zip -r openvpnadapter-mac.zip openvpnadapter-mac/
shell: bash

- name: Zip iOS Artifacts
run: |
zip -r openvpnadapter-ios.zip openvpnadapter-ios/
shell: bash

- name: List Generated Files
run: ls -l

- name: Upload Binaries to GitHub Release
uses: svenstaro/upload-release-action@v2
Expand All @@ -154,4 +162,4 @@ jobs:
file: |
openvpnadapter-mac.zip
openvpnadapter-ios.zip
file_glob: false
file_glob: false

0 comments on commit 265306e

Please sign in to comment.