Skip to content

Commit 3278038

Browse files
committed
update release workflow to include release-test branch and conditional execution for tag events
1 parent dbdd820 commit 3278038

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
# Sequence of patterns matched against refs/tags
55
tags:
66
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
7+
branches:
8+
- "release-test"
79

810
name: Create Release
911

@@ -56,6 +58,7 @@ jobs:
5658
name: Create Github Release
5759
needs: [build, build-aws]
5860
runs-on: ubuntu-latest
61+
if: startsWith(github.ref, 'refs/tags/')
5962
steps:
6063
- uses: actions/checkout@v4
6164
- uses: actions/download-artifact@v4
@@ -84,6 +87,7 @@ jobs:
8487
cargo_publish:
8588
name: Publish to crates.io
8689
runs-on: ubuntu-latest
90+
if: startsWith(github.ref, 'refs/tags/')
8791
steps:
8892
- uses: actions/checkout@v4
8993
- name: Set up cargo cache

0 commit comments

Comments
 (0)