Build on every push but only publish on tags

This commit is contained in:
Adrian Garcia Badaracco 2022-08-30 09:02:04 -05:00 committed by GitHub
parent ae27793b86
commit e7ecb3200c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
name: Release
on:
push:
create:
tags:
- v*
@ -267,7 +268,7 @@ jobs:
- musllinux
- musllinux-cross
- pypy
if: "startsWith(github.ref, 'refs/tags/')"
if: "github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/download-artifact@v2
with: