ci(release): publish to test.pypi.org on pushing to master branch

This commit is contained in:
Sigurd Spieckermann 2025-04-25 11:44:20 +02:00 committed by Sigurd Spieckermann
parent e6b0a4dc86
commit f82a0a5194

View File

@ -2,6 +2,7 @@ name: release
on:
push:
branches: [master]
tags: ["*"]
env:
@ -37,7 +38,7 @@ jobs:
name: Publish package distributions to test.pypi.org
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
environment:
name: pypi-test
url: https://test.pypi.org/p/copier