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