File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 1414jobs :
1515 build_arch :
1616 runs-on : macos-latest
17+ if : |
18+ contains(github.event.head_commit.message, '[all]') ||
19+ contains(github.event.head_commit.message, '[macos]') ||
20+ contains(github.event.head_commit.message, '[macos-libssh]') ||
21+ contains(github.event.head_commit.message, '[libssh]')
1722 strategy :
1823 matrix :
1924 arch :
@@ -243,4 +248,29 @@ jobs:
243248 uses : actions/upload-artifact@v4
244249 with :
245250 name : libssh-fat
246- path : libssh-fat.zip
251+ path : libssh-fat.zip
252+
253+ github-release :
254+ name : GitHub Release
255+ needs : [build_arch, build_fat]
256+ runs-on : ubuntu-latest
257+ if : startsWith(github.ref, 'refs/tags/')
258+ steps :
259+ - name : Setup | Checkout
260+ uses : actions/checkout@v2
261+ - name : Setup | Artifacts
262+ uses : actions/download-artifact@v4
263+ - name : Setup | Checksums
264+ run : for file in $(find ./ -name '*.a' ); do openssl dgst
265+ -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
266+ - name : Zip ALL
267+ run : for file in *; do zip -r ${file%.*}.zip $file; done
268+ - name : Upload binaries to release
269+ uses : svenstaro/upload-release-action@v2
270+ with :
271+ repo_token : ${{ secrets.GITHUB_TOKEN }}
272+ file : " *.zip"
273+ tag : ${{ github.ref }}
274+ overwrite : true
275+ file_glob : true
276+
You can’t perform that action at this time.
0 commit comments