From 9a8a94f799f731b51527c44dc5759e7cd9bdadc4 Mon Sep 17 00:00:00 2001 From: ynouri Date: Wed, 6 Jan 2021 00:10:25 -0500 Subject: [PATCH] Only archive distributions on the 0.x tags --- .github/workflows/sdist.yml | 3 ++- .github/workflows/wheel.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index a9a58e2..8523d92 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -45,9 +45,10 @@ jobs: run: pytest --verbose test_snappy.py - name: Archive sdist + if: startsWith(github.ref, 'refs/tags/0.') uses: actions/upload-artifact@v2 with: - name: python_snappy-${{ matrix.pep-425-tag }}-manylinux + name: python-snappy-sdist path: dist/python-snappy*.tar.gz - name: Publish sdist to PyPI diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index ba86fe2..a23d8c3 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -64,6 +64,7 @@ jobs: run: pytest --verbose test_snappy.py - name: Archive wheels + if: startsWith(github.ref, 'refs/tags/0.') uses: actions/upload-artifact@v2 with: name: python_snappy-${{ matrix.pep-425-tag }}-manylinux