fix: ARM64 workflow version extraction from tag/input
This commit is contained in:
1 parent
b2e05b701b
commit
ee515573a2
1 file changed
+18
-1
@@ -2,6 +2,11 @@ name: Linux ARM64 (aarch64) Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: "Optional release tag to build (e.g. v1.1.6)"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
tags:
|
tags:
|
||||||
@@ -23,6 +28,18 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@@ -56,7 +73,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Collect artifacts
|
- name: Collect artifacts
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.event.release.tag_name || 'dev' }}
|
VERSION: ${{ steps.release.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cp -v src-tauri/target/release/bundle/deb/*.deb dist/ || true
|
cp -v src-tauri/target/release/bundle/deb/*.deb dist/ || true
|
||||||
|
|||||||
Reference in new issue
Block a user