Skip to content

Commit

Permalink
Add release action for MacOS libssh
Browse files Browse the repository at this point in the history
[macos-libssh]
  • Loading branch information
outspace committed Mar 8, 2025
1 parent 2fcff0a commit bee5381
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/build_libssh_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ env:
jobs:
build_arch:
runs-on: macos-latest
if: |
contains(github.event.head_commit.message, '[all]') ||
contains(github.event.head_commit.message, '[macos]') ||
contains(github.event.head_commit.message, '[macos-libssh]') ||
contains(github.event.head_commit.message, '[libssh]')
strategy:
matrix:
arch:
Expand Down Expand Up @@ -243,4 +248,29 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: libssh-fat
path: libssh-fat.zip
path: libssh-fat.zip

github-release:
name: GitHub Release
needs: [build_arch, build_fat]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Artifacts
uses: actions/download-artifact@v4
- name: Setup | Checksums
run: for file in $(find ./ -name '*.a' ); do openssl dgst
-sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.zip"
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit bee5381

Please sign in to comment.