fix: ARM64 workflow version extraction from tag/input

This commit is contained in:
vicrodh committed 2026-01-20 22:42:26 -06:00
1 parent b2e05b701b
commit ee515573a2
1 file changed
+18 -1
+18 -1
View File
@@ -2,6 +2,11 @@ name: Linux ARM64 (aarch64) Build
on:
workflow_dispatch:
inputs:
tag:
description: "Optional release tag to build (e.g. v1.1.6)"
required: false
type: string
push:
branches: [main]
tags:
@@ -23,6 +28,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Determine version
id: release
run: |
VERSION=""
if [[ "${GITHUB_REF}" == refs/tags/v* ]]; then
VERSION="${GITHUB_REF#refs/tags/v}"
elif [[ -n "${{ inputs.tag }}" ]]; then
VERSION="${{ inputs.tag }}"
VERSION="${VERSION#v}"
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Setup Node
uses: actions/setup-node@v4
with:
@@ -56,7 +73,7 @@ jobs:
- name: Collect artifacts
env:
VERSION: ${{ github.event.release.tag_name || 'dev' }}
VERSION: ${{ steps.release.outputs.version }}
run: |
mkdir -p dist
cp -v src-tauri/target/release/bundle/deb/*.deb dist/ || true