Skip to content

Commit

Permalink
fix: do not auto-publish to PyPI (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jul 26, 2022
1 parent 99f694a commit b12bb9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/cd.yml
Expand Up @@ -29,26 +29,3 @@ jobs:
MINOR_VERSION_BRANCH="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.x"
git push origin HEAD:refs/heads/$MINOR_VERSION_BRANCH --force
fi
pypi:
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
needs: push
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -48,10 +48,11 @@ repos:
)$
- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.132
rev: 0.0.133
hooks:
- id: check-dev-files
args:
- --no-cd
- --pin-requirements=bimonthly
- id: fix-nbformat-version
- id: format-setup-cfg
Expand Down

0 comments on commit b12bb9c

Please sign in to comment.