Skip to content

Commit 9aeddda

Browse files
Rodriguespnclaude
andcommitted
chore: wire up force_publish input in release workflow
Add workflow_dispatch trigger with force_publish flag so the release artifact can be re-published manually without a new release-please run. Derives the tag from the latest git tag when release-please did not create one, and uses --clobber to overwrite existing release assets. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2ed4976 commit 9aeddda

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
8+
inputs:
9+
force_publish:
10+
description: 'Skip release-please and publish current version of supabase-plugin'
11+
type: boolean
12+
default: false
713

814
permissions:
915
contents: write
@@ -19,10 +25,22 @@ jobs:
1925
token: ${{ secrets.GITHUB_TOKEN }}
2026

2127
- uses: actions/checkout@v4
22-
if: ${{ steps.release.outputs.release_created }}
28+
if: ${{ steps.release.outputs.release_created || inputs.force_publish == true }}
29+
with:
30+
fetch-tags: true
31+
32+
- name: Resolve release tag
33+
id: tag
34+
if: ${{ steps.release.outputs.release_created || inputs.force_publish == true }}
35+
run: |
36+
if [ -n "${{ steps.release.outputs.tag_name }}" ]; then
37+
echo "name=${{ steps.release.outputs.tag_name }}" >> "$GITHUB_OUTPUT"
38+
else
39+
echo "name=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"
40+
fi
2341
2442
- name: Create vendor archives
25-
if: ${{ steps.release.outputs.release_created }}
43+
if: ${{ steps.release.outputs.release_created || inputs.force_publish == true }}
2644
run: |
2745
tar -czvf "supabase-plugin.tar.gz" --dereference \
2846
.claude-plugin/ .cursor-plugin/ .codex-plugin/ \
@@ -31,7 +49,7 @@ jobs:
3149
skills/ assets/ || exit 1
3250
3351
- name: Upload release assets
34-
if: ${{ steps.release.outputs.release_created }}
52+
if: ${{ steps.release.outputs.release_created || inputs.force_publish == true }}
3553
env:
3654
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
run: gh release upload ${{ steps.release.outputs.tag_name }} supabase-plugin.tar.gz
55+
run: gh release upload ${{ steps.tag.outputs.name }} supabase-plugin.tar.gz --clobber

0 commit comments

Comments
 (0)