Skip to content

Commit 3a6a7b5

Browse files
MacbookMacbook
authored andcommitted
add github release [openvpnadapter]
1 parent 4c70dc0 commit 3a6a7b5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build_openvpnadapter_apple.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,46 @@ jobs:
111111
with:
112112
name: OpenVPNAdapter-ios
113113
path: OpenVPNAdapter/build/Release-iphoneos
114+
github-release:
115+
name: GitHub Release
116+
needs: [build-macos, build-ios]
117+
runs-on: ubuntu-latest
118+
if: startsWith(github.ref, 'refs/tags/')
119+
120+
steps:
121+
- name: Setup | Checkout
122+
uses: actions/checkout@v3
123+
124+
- name: Setup | Download macOS Artifact
125+
uses: actions/download-artifact@v3
126+
with:
127+
name: OpenVPNAdapter-macos
128+
path: openvpnadapter-mac/
129+
130+
- name: Setup | Download iOS Artifact
131+
uses: actions/download-artifact@v3
132+
with:
133+
name: OpenVPNAdapter-ios
134+
path: openvpnadapter-ios/
135+
136+
- name: Setup | Generate Checksums
137+
run: |
138+
for file in $(find ./ -type f -name '*.framework' -o -name '*.dylib'); do
139+
openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"
140+
done
141+
142+
- name: Zip macOS and iOS Artifacts
143+
run: |
144+
zip -r openvpnadapter-mac.zip openvpnadapter-mac/
145+
zip -r openvpnadapter-ios.zip openvpnadapter-ios/
146+
147+
- name: Upload Binaries to GitHub Release
148+
uses: svenstaro/upload-release-action@v2
149+
with:
150+
repo_token: ${{ secrets.GITHUB_TOKEN }}
151+
tag: ${{ github.ref }}
152+
overwrite: true
153+
file: |
154+
openvpnadapter-mac.zip
155+
openvpnadapter-ios.zip
156+
file_glob: false

0 commit comments

Comments
 (0)