Skip to content

Commit 1f0df17

Browse files
author
Mat Lord
committed
fix(workflow): The ref will always be a tag
1 parent f8fc3b8 commit 1f0df17

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ name: deploy
33
on:
44
push:
55
tags:
6-
- '*'
6+
- 'v*'
77

88
jobs:
99
deploy:
10-
if: github.base_ref == 'refs/heads/master'
1110
name: Package and publish to PyPi 📦
1211
runs-on: ubuntu-latest
1312
steps:
@@ -25,13 +24,13 @@ jobs:
2524
run: |
2625
pipenv run python setup.py sdist bdist_wheel
2726
- name: Publish distribution 📦 to Test PyPI
28-
if: contains(github.ref, 'refs/tags/*-beta')
27+
if: contains(github.ref, 'beta')
2928
uses: pypa/gh-action-pypi-publish@master
3029
with:
3130
password: ${{ secrets.TEST_PYPI_PASSWORD }}
3231
repository_url: https://test.pypi.org/legacy/
3332
# - name: Publish distribution 📦 to PyPI
34-
# if: (contains(github.ref, 'refs/tags/*-beta')) != true
33+
# if: (contains(github.ref, 'beta')) != true
3534
# uses: pypa/gh-action-pypi-publish@master
3635
# with:
3736
# password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)