Skip to content

Commit

Permalink
updated the ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lyna1404 committed Jul 4, 2024
1 parent f796327 commit 6b46207
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,11 @@ jobs:
- name: Build package
run: |
python setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel # Could also be python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.1 # Updated to the latest version
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Build and deploy documentation to Read the Docs
run: |
pip install sphinx
cd docs
make html
sphinx-build -b html . _build/html
env:
READTHEDOCS: "True" # Ensure that the Read the Docs environment variable is set
repository-url: https://upload.pypi.org/legacy/
skip-existing: true

0 comments on commit 6b46207

Please sign in to comment.