Skip to content

Commit

Permalink
Merge pull request #91 from neutrinoceros/fix_cd
Browse files Browse the repository at this point in the history
REL: fix auto-publish workflow
  • Loading branch information
neutrinoceros authored Dec 24, 2022
2 parents 10a0c35 + 3fbe860 commit 64f6b49
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CD
on:
push:
tags: v*
pull_request:
paths:
- .github/workflows/cd.yml
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -13,12 +16,13 @@ jobs:
with:
python-version: '3.10'
- name: Install build dependencies
run: python3 -m pip install build wheel
run: python -m pip install build wheel
- name: Build distributions
shell: bash -l {0}
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish package to PyPI
uses: pypa/[email protected]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}

0 comments on commit 64f6b49

Please sign in to comment.