Skip to content

Commit

Permalink
[Fix] GitHub Actions for publishing package distributions to PyPI (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiyiMei authored Apr 11, 2024
1 parent 8ffd0ea commit 1fde56f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ on: push
jobs:
build-n-publish:
runs-on: ubuntu-latest
environment: release
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Build XRFeitoria
run: |
pip install wheel
pip wheel --no-deps --wheel-dir dist .
- name: Publish distribution to PyPI
run: |
pip install twine
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 1fde56f

Please sign in to comment.