ci: trigger release only on v* tag push
This commit is contained in:
1 parent
7f90b366eb
commit
d70a931591
1 file changed
+1
-16
@@ -2,16 +2,8 @@ name: Release Plugins
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Release version (e.g. v1.0.1). Leave blank to use the tag or "latest".'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -25,14 +17,7 @@ jobs:
|
||||
# ── Determine the release tag ─────────────────────────────────────────
|
||||
- name: Determine release tag
|
||||
id: tag
|
||||
run: |
|
||||
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
||||
echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
|
||||
elif [[ -n "${{ github.event.inputs.version }}" ]]; then
|
||||
echo "tag=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "tag=latest" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# ── Build ZIP archives ────────────────────────────────────────────────
|
||||
- name: Create plugin ZIPs
|
||||
|
||||
Reference in new issue
Block a user