Skip to content

Commit b7d4b95

Browse files
authored
Update main.yml
Shouldn't publish pypi for general commits
1 parent ade388b commit b7d4b95

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -126,35 +126,4 @@ jobs:
126126
cd docs
127127
sphinx-build -W -b html -d _build/doctrees . _build/html
128128
sphinx-build -W -b spelling -d _build/doctrees . _build/spelling
129-
deploy:
130-
needs: [ build, docs ]
131-
runs-on: ubuntu-latest
132-
env:
133-
python-version: 3.7
134-
steps:
135-
- uses: actions/checkout@v2
136-
- name: Set up Python ${{ env.python-version }}
137-
uses: actions/setup-python@v2
138-
with:
139-
python-version: ${{ env.python-version }}
140-
- name: Install pypa/build
141-
run: |
142-
python -m pip install build --user
143-
- name: Build a binary wheel and a source tarball
144-
run: |
145-
python -m build --sdist --wheel --outdir dist/ .
146-
- name: Publish Python 🐍 distributions 📦 to Test PyPI
147-
# Upload only on tagged commits.
148-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
149-
uses: pypa/gh-action-pypi-publish@release/v1
150-
with:
151-
user: __token__
152-
repository_url: https://test.pypi.org/legacy/
153-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
154-
- name: Publish Python 🐍 distributions 📦 to PyPI
155-
# Upload only on tagged commits.
156-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
157-
uses: pypa/gh-action-pypi-publish@release/v1
158-
with:
159-
user: __token__
160-
password: ${{ secrets.PYPI_API_TOKEN }}
129+

0 commit comments

Comments
 (0)