Skip to content

Commit 2a44343

Browse files
author
Mat Lord
authored
Merge pull request #21 from stax-labs/feat/deploy
Feat/deploy
2 parents 495392d + 2bc8886 commit 2a44343

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: deploy
22

33
on:
44
push:
5-
branches: [ master ]
5+
tags:
6+
- '*'
67

78
jobs:
89
deploy:
10+
if: github.ref == 'refs/heads/master'
911
name: Package and publish to PyPi 📦
1012
runs-on: ubuntu-latest
1113
steps:
@@ -23,13 +25,13 @@ jobs:
2325
run: |
2426
pipenv run python setup.py sdist bdist_wheel
2527
- name: Publish distribution 📦 to Test PyPI
26-
if: contains(github.ref, 'test')
28+
if: contains(github.ref, 'refs/tags/*-beta')
2729
uses: pypa/gh-action-pypi-publish@master
2830
with:
2931
password: ${{ secrets.TEST_PYPI_PASSWORD }}
3032
repository_url: https://test.pypi.org/legacy/
3133
# - name: Publish distribution 📦 to PyPI
32-
# if: contains(github.ref, 'release')
34+
# if: !(contains(github.ref, 'refs/tags/*-beta'))
3335
# uses: pypa/gh-action-pypi-publish@master
3436
# with:
3537
# password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)