ci: update release processes using Justfile, make reusable workflows have optional version param (#972)

This commit is contained in:
Kalvin C 2025-01-31 11:44:55 -08:00 committed by GitHub
parent a2bd5099be
commit 7c87a963c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 89 additions and 48 deletions

View file

@ -8,7 +8,8 @@ on:
inputs:
version:
description: 'Version to set for the build'
required: true
required: false
default: ""
type: string
signing:
description: 'Whether to perform signing and notarization'
@ -75,6 +76,7 @@ jobs:
# Update versions before build
- name: Update versions
if: ${{ inputs.version != '' }}
run: |
# Update version in Cargo.toml
sed -i.bak 's/^version = ".*"/version = "'${{ inputs.version }}'"/' Cargo.toml