feat(ci): add workflow_dispatch to release for manual tag builds

This commit is contained in:
Offending Commit
2026-04-27 14:04:32 -05:00
parent 86f5c44880
commit 18905ef987

View File

@@ -4,6 +4,12 @@ on:
push: push:
tags: tags:
- 'v*' - 'v*'
workflow_dispatch:
inputs:
tag:
description: Tag to build and upload artifacts for (e.g. v0.2.0)
required: true
type: string
jobs: jobs:
build: build:
@@ -26,6 +32,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag || github.ref }}
- name: Install Linux dependencies - name: Install Linux dependencies
if: matrix.os == 'ubuntu-22.04' if: matrix.os == 'ubuntu-22.04'
@@ -45,7 +53,8 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
RELEASE_ID=$(gh release view "${{ github.ref_name }}" --json databaseId --jq '.databaseId') TAG=${{ github.event.inputs.tag || github.ref_name }}
RELEASE_ID=$(gh release view "$TAG" --json databaseId --jq '.databaseId')
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
- uses: tauri-apps/tauri-action@v0 - uses: tauri-apps/tauri-action@v0