Skip to content

Commit faf1a34

Browse files
committed
chore: allow releases for v3-stable
1 parent 41fadbf commit faf1a34

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
steps:
4646
- name: Verify branch
4747
run: |
48-
if [ "${{ github.ref }}" != "refs/heads/main" ]; then
49-
echo "❌ Error: Releases can only be triggered from main branch"
48+
if [ "${{ github.ref_name }}" != "main" ] && [ "${{ github.ref_name }}" != "v3-stable" ]; then
49+
echo "❌ Error: Releases can only be triggered from main or v3-stable"
5050
echo "Current ref: ${{ github.ref }}"
5151
exit 1
5252
fi
@@ -246,7 +246,7 @@ jobs:
246246
id: push-tag
247247
run: |
248248
git tag "v${{ steps.new-version.outputs.version }}"
249-
git push origin main
249+
git push origin HEAD:${{ github.ref_name }}
250250
git push origin "v${{ steps.new-version.outputs.version }}"
251251
252252
- name: Publish to PyPI

0 commit comments

Comments
 (0)