Skip to content

Commit 295dbb2

Browse files
Merge pull request #25 from amnezia-vpn/bugfix/macos-libssh
Add release action for MacOS libssh
2 parents 481caed + 1d92adf commit 295dbb2

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/build_libssh_macos.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
contains(github.event.head_commit.message, '[all]') ||
1919
contains(github.event.head_commit.message, '[macos]') ||
2020
contains(github.event.head_commit.message, '[macos-libssh]') ||
21-
contains(github.event.head_commit.message, '[libssh]')
21+
contains(github.event.head_commit.message, '[libssh]')
2222
strategy:
2323
matrix:
2424
arch:
@@ -249,3 +249,28 @@ jobs:
249249
with:
250250
name: libssh-fat
251251
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+

0 commit comments

Comments
 (0)