From 56ad6f061e7be26c23d4d9534024de264e2fe9fc Mon Sep 17 00:00:00 2001
From: Ellis Percival <flyte@failcode.co.uk>
Date: Tue, 19 Jan 2021 13:26:58 +0000
Subject: [PATCH] Only publish on tagged builds

---
 .github/workflows/{test.yml => test-and-publish.yml} | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
 rename .github/workflows/{test.yml => test-and-publish.yml} (88%)

diff --git a/.github/workflows/test.yml b/.github/workflows/test-and-publish.yml
similarity index 88%
rename from .github/workflows/test.yml
rename to .github/workflows/test-and-publish.yml
index dee167c..7e4fd2b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test-and-publish.yml
@@ -1,4 +1,4 @@
-name: Run tests
+name: Test and publish
 on: push
 
 jobs:
@@ -41,10 +41,6 @@ jobs:
         if: matrix.python-version == '2.7'
       - run: python -m build --sdist --wheel --outdir dist/ .
         if: matrix.python-version == '3.6'
-      - uses: pypa/gh-action-pypi-publish@master
-        with:
-          password: ${{ secrets.TEST_PYPI_API_TOKEN }}
-          repository_url: https://test.pypi.org/legacy/
       - uses: pypa/gh-action-pypi-publish@master
         if: startsWith(github.ref, 'refs/tags')
         with:
-- 
GitLab