fix: update versions in release and canary workflows (#911)

Co-authored-by: Salman Mohammed <smohammed@squareup.com>
This commit is contained in:
lily-de
2025-01-30 19:21:12 -05:00
committed by GitHub
parent 3569c6abee
commit 3d0c58e5f3
4 changed files with 86 additions and 23 deletions

View File

@@ -6,6 +6,10 @@
on:
workflow_call:
inputs:
version:
description: 'Version to set for the build'
required: true
type: string
signing:
description: 'Whether to perform signing and notarization'
required: false
@@ -69,6 +73,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
# Update versions before build
- name: Update versions
run: |
# Update version in Cargo.toml
sed -i.bak 's/^version = ".*"/version = "'${{ inputs.version }}'"/' Cargo.toml
rm -f Cargo.toml.bak
# Update version in package.json
cd ui/desktop
npm version ${{ inputs.version }} --no-git-tag-version --allow-same-version
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
@@ -98,13 +113,13 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-build-
# Rest of the workflow remains the same...
- name: Build goosed
run: cargo build --release -p goose-server
- name: Copy binary into Electron folder
run: cp target/release/goosed ui/desktop/src/bin/goosed
# Conditional Signing Step - we skip this for faster builds
- name: Add MacOS certs for signing and notarization
if: ${{ inputs.signing }}
run: ./add-macos-cert.sh
@@ -201,4 +216,4 @@ jobs:
exit 1
fi
# Kill the app to clean up
pkill -f "Goose.app/Contents/MacOS/Goose"
pkill -f "Goose.app/Contents/MacOS/Goose"