Remove publish job from the check workflow (#361)

This commit is contained in:
Kemal Zebari 2024-04-29 18:40:03 -07:00 committed by GitHub
parent a1bf8455a7
commit 4c832b516e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 22 deletions

View File

@ -3,7 +3,6 @@ on:
workflow_dispatch:
push:
branches: "main"
tags-ignore: ["**"]
pull_request:
schedule:
- cron: "0 8 * * *"
@ -81,24 +80,3 @@ jobs:
run: python -m tox -e ${{ matrix.tox_env }}
env:
UPGRADE_ADVISORY: "yes"
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [check, test]
runs-on: ubuntu-latest
steps:
- name: setup python to build package
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install build
run: python -m pip install build
- uses: actions/checkout@v4
- name: build package
run: python -m build --sdist --wheel . -o dist
- name: publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
skip_existing: true
user: __token__
password: ${{ secrets.pypi_password }}