Remove publish job from the check workflow (#361)
This commit is contained in:
parent
a1bf8455a7
commit
4c832b516e
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue