Skip to content
Snippets Groups Projects
Commit 56ad6f06 authored by Ellis Percival's avatar Ellis Percival
Browse files

Only publish on tagged builds

parent 4d88b585
No related branches found
No related tags found
No related merge requests found
name: Run tests name: Test and publish
on: push on: push
jobs: jobs:
...@@ -41,10 +41,6 @@ jobs: ...@@ -41,10 +41,6 @@ jobs:
if: matrix.python-version == '2.7' if: matrix.python-version == '2.7'
- run: python -m build --sdist --wheel --outdir dist/ . - run: python -m build --sdist --wheel --outdir dist/ .
if: matrix.python-version == '3.6' 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 - uses: pypa/gh-action-pypi-publish@master
if: startsWith(github.ref, 'refs/tags') if: startsWith(github.ref, 'refs/tags')
with: with:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment