Skip to content

Commit

Permalink
Refactor build_and_publish workflow
Browse files Browse the repository at this point in the history
to remove TestPyPI publishing step and update default index in pyproject.toml
  • Loading branch information
cpaniaguam committed Jan 16, 2025
1 parent 6d29522 commit 7bf5dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,13 @@ jobs:
- name: Build the wheel
run: uv build

# Publish to TestPyPI
- name: Publish to TestPyPI
run: |
uv publish --token ${{ secrets.TEST_PYPI_TOKEN }} --index testpypi
# Publish to PyPI (default index)
- name: Publish to PyPI
run: |
uv publish --token ${{ secrets.PYPI_TOKEN }}
# Build and publish docs
- name: Build and publish docs
run: uv run mkdocs gh-deploy --force
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,5 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"


name = "default"
url = "https://pypi.org/simple/"

0 comments on commit 7bf5dac

Please sign in to comment.