Skip to content

Commit 940f7c2

Browse files
author
Mat Lord
authored
Merge pull request #25 from stax-labs/feat/prod-pypi
chore(pypi): Enable production dist
2 parents fcb50fd + b252182 commit 940f7c2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: deploy
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
release:
5+
types: [published]
76

87
jobs:
98
deploy:
@@ -24,13 +23,13 @@ jobs:
2423
run: |
2524
pipenv run python setup.py sdist bdist_wheel
2625
- name: Publish distribution 📦 to Test PyPI
27-
if: contains(github.ref, 'beta')
26+
if: github.event.release.prerelease == true
2827
uses: pypa/gh-action-pypi-publish@master
2928
with:
3029
password: ${{ secrets.TEST_PYPI_PASSWORD }}
3130
repository_url: https://test.pypi.org/legacy/
32-
# - name: Publish distribution 📦 to PyPI
33-
# if: (contains(github.ref, 'beta')) != true
34-
# uses: pypa/gh-action-pypi-publish@master
35-
# with:
36-
# password: ${{ secrets.PYPI_PASSWORD }}
31+
- name: Publish distribution 📦 to PyPI
32+
if: github.event.release.prerelease != true
33+
uses: pypa/gh-action-pypi-publish@master
34+
with:
35+
password: ${{ secrets.PYPI_PASSWORD }}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
`staxapp` is the [Stax](https://stax.io) Software Development Kit (SDK) for Python, allowing users to interact with the Stax platform.
33

44
![Build](https://github.com/stax-labs/lib-stax-python-sdk/workflows/build/badge.svg)
5+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stax-labs_lib-stax-python-sdk&metric=alert_status&token=a1841dea3e7b4f749a99ea4351e95de1775f39fb)](https://sonarcloud.io/dashboard?id=stax-labs_lib-stax-python-sdk)
56

67
## Authentication
78
In order to use the Stax SDK for Python, you will need a valid [Stax API Token](https://www.stax.io/docs/stax_team/access_stax_api_with_an_api_token/).
@@ -44,7 +45,7 @@ print(response)
4445
```
4546

4647
## Contributing
47-
For more information on contributing the to the Stax SDK, please see our [guide](CONTRIBUTING.md).
48+
For more information on contributing the to the Stax SDK, please see our [guide](https://github.com/stax-labs/lib-stax-python-sdk/blob/master/CONTRIBUTING.md).
4849

4950
## Getting Help
5051
* If you're having trouble using the Stax SDK, please refer to our [documentation](https://www.stax.io/docs/).<br>

0 commit comments

Comments
 (0)