From d019e0937526be8a7ecb69a2a657711bd0b2c50a Mon Sep 17 00:00:00 2001 From: Alex Remedios Date: Mon, 23 Dec 2024 18:22:00 +0000 Subject: [PATCH] . --- .github/workflows/publish-to-pypi.yml | 3 +-- .github/workflows/test-publish-to-pypi.yml | 2 +- .gitignore | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 902568d..4b538c2 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -10,8 +10,7 @@ jobs: - uses: actions/setup-python@v2 - run: pip install uv - run: uv build - - run: pip install twine==4.0.1 - - run: twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} + - run: uv publish -t ${{ secrets.PYPI_API_TOKEN }} - uses: EndBug/add-and-commit@v7.0.0 with: author_name: github-actions diff --git a/.github/workflows/test-publish-to-pypi.yml b/.github/workflows/test-publish-to-pypi.yml index cb66d9e..1900e79 100644 --- a/.github/workflows/test-publish-to-pypi.yml +++ b/.github/workflows/test-publish-to-pypi.yml @@ -3,6 +3,7 @@ on: push: branches: - main + pull_request: jobs: build-n-publish: runs-on: ubuntu-24.04 @@ -16,5 +17,4 @@ jobs: - run: pytest --nbmake tests/resources/mock.ipynb - run: pip install dist/*whl --force-reinstall - run: pytest --nbmake tests/resources/mock.ipynb - - run: pip install twine==4.0.1 - run: uv publish --check-url https://test.pypi.org/project/nbmake/ --publish-url "https://test.pypi.org/legacy/" -t ${{ secrets.TEST_PYPI_API_TOKEN }} diff --git a/.gitignore b/.gitignore index ed77bde..7435540 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,4 @@ typeshed trash **/_build .aider* +scratch/ \ No newline at end of file