Skip to content

Commit

Permalink
REL: fix auto-publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 24, 2022
1 parent 10a0c35 commit 3fbe860
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/gh-action-pypi-publish@v1.4.2
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@v1.6.4
with:
user: __token__
password: ${{ secrets.pypi_token }}

0 comments on commit 3fbe860

Please # to comment.