File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments