Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions clients/cli/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,28 @@ jobs:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.version.outputs.VERSION }}
- name: Upload built binaries
- name: Upload built binaries as artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- name: Publish release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1
with:
files: |
dist/phrase_macosx_*
dist/phrase_linux_*
dist/phrase_windows_*
draft: false
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

sign_and_notarize:
runs-on: macos-latest
needs: release
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -63,13 +76,10 @@ jobs:
NOTARIZATION_APPLE_ID: ${{ secrets.NOTARIZATION_APPLE_ID }}
NOTARIZATION_APP_PASSWORD: ${{ secrets.NOTARIZATION_APP_PASSWORD }}
NOTARIZATION_TEAM_ID: ${{ secrets.NOTARIZATION_TEAM_ID }}
- name: Upload signed binaries and publish release
- name: Upload signed macOS binaries
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1
with:
files: |
dist/phrase_macosx_*
dist/phrase_linux_*
dist/phrase_windows_*
files: dist/phrase_macosx_*
overwrite: true
draft: false
name: ${{ github.ref_name }}
Expand All @@ -78,7 +88,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
brew:
runs-on: ubuntu-latest
needs: sign_and_notarize
needs: [release, sign_and_notarize]
if: always() && needs.release.result == 'success'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Loading