Skip to content

Commit

Permalink
Update upload pypi yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyulu committed Dec 7, 2023
1 parent 62ac98b commit 93b0252
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/AutoPushToPypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Unit testings
run: |
pip install -r test_requirements.txt
pytest -s test/test_*.py
pytest --cov src
GenerateWHL_PushPyPi:
needs: UnitTesting
Expand All @@ -42,18 +42,11 @@ jobs:
pip install --upgrade build
python -m pip install --upgrade pip
python -m build
# - name: Publish distribution 📦 to TEST-PyPI
# uses: pypa/[email protected]
# with:
# # For test
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# packages_dir: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@release/v1
with:
# For real release
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/
repository-url: https://pypi.org/legacy/
packages-dir: dist/
9 changes: 1 addition & 8 deletions .github/workflows/TEST_AutoPushToPypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,4 @@ jobs:
# For test
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
packages_dir: dist/

# - name: Publish distribution 📦 to PyPI
# uses: pypa/[email protected]
# with:
# # For real release
# password: ${{ secrets.PYPI_API_TOKEN }}
# packages_dir: dist/
packages-dir: dist/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dynamic = ["dependencies", "version"]

[project.urls]
homepage = "https://github.com/shenyulu/easyclimate"
documentation = "https://numpy.org/doc/"
documentation = "https://easyclimate.readthedocs.io/en/latest/"
source = "https://github.com/shenyulu/easyclimate"
download = "https://pypi.org/project/easyclimate/#files"
tracker = "https://github.com/shenyulu/easyclimate/issues"
Expand Down

0 comments on commit 93b0252

Please sign in to comment.