Skip to content

Commit 18905ef

Browse files
feat(ci): add workflow_dispatch to release for manual tag builds
1 parent 86f5c44 commit 18905ef

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: Tag to build and upload artifacts for (e.g. v0.2.0)
11+
required: true
12+
type: string
713

814
jobs:
915
build:
@@ -26,6 +32,8 @@ jobs:
2632

2733
steps:
2834
- uses: actions/checkout@v4
35+
with:
36+
ref: ${{ github.event.inputs.tag || github.ref }}
2937

3038
- name: Install Linux dependencies
3139
if: matrix.os == 'ubuntu-22.04'
@@ -45,7 +53,8 @@ jobs:
4553
env:
4654
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4755
run: |
48-
RELEASE_ID=$(gh release view "${{ github.ref_name }}" --json databaseId --jq '.databaseId')
56+
TAG=${{ github.event.inputs.tag || github.ref_name }}
57+
RELEASE_ID=$(gh release view "$TAG" --json databaseId --jq '.databaseId')
4958
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
5059
5160
- uses: tauri-apps/tauri-action@v0

0 commit comments

Comments
 (0)