Skip to content

Commit

Permalink
Remove publish job from the check workflow (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
kemzeb committed Apr 30, 2024
1 parent a1bf845 commit 4c832b5
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
workflow_dispatch:
push:
branches: "main"
tags-ignore: ["**"]
pull_request:
schedule:
- cron: "0 8 * * *"
Expand Down Expand Up @@ -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 }}

0 comments on commit 4c832b5

Please sign in to comment.