Skip to content

Commit b945d37

Browse files
authored
Only create releases from v0.* tags (#2801)
1 parent 28d6806 commit b945d37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
release:
3535
needs: test
36-
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'dev-')
36+
if: startsWith(github.ref, 'refs/tags/v0.') && !contains(github.ref, 'dev-')
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@v4
@@ -79,7 +79,7 @@ jobs:
7979
sync_docs:
8080
needs: release
8181
runs-on: ubuntu-latest
82-
if: ${{ !contains(github.ref, 'pre') }}
82+
if: startsWith(github.ref, 'refs/tags/v0.') && !contains(github.ref, 'pre') && !contains(github.ref, 'dev-')
8383
steps:
8484
- name: Checkout flyctl
8585
uses: actions/checkout@v4
@@ -106,7 +106,7 @@ jobs:
106106
run: scripts/publish_docs.sh ${{ github.ref_name }}
107107

108108
dev_release:
109-
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'dev-')
109+
if: startsWith(github.ref, 'refs/tags/v0.') && contains(github.ref, 'dev-')
110110
runs-on: ubuntu-latest
111111
steps:
112112
- uses: actions/checkout@v4
@@ -141,7 +141,7 @@ jobs:
141141
aur-publish:
142142
name: Build & publish to AUR
143143
needs: release
144-
if: ${{ !contains(github.ref, 'pre') }}
144+
if: startsWith(github.ref, 'refs/tags/v0.') && !contains(github.ref, 'pre') && !contains(github.ref, 'dev-')
145145
runs-on: ubuntu-latest
146146
steps:
147147
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)