Skip to content

Commit 8e774fc

Browse files
committed
ci: only push to crates io when tag is used
1 parent 1044a33 commit 8e774fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77
- 'ft*'
8+
tags:
9+
- "v*.*.*"
810
pull_request:
911
branches:
1012
- master
@@ -53,7 +55,7 @@ jobs:
5355
runs-on: ubuntu-latest
5456
needs: test
5557
environment: master
56-
if: github.ref == 'refs/heads/master'
58+
if: startsWith(github.ref, 'refs/tags/')
5759
steps:
5860
- name: Checkout repository
5961
uses: actions/checkout@v4

0 commit comments

Comments
 (0)