From ad669d2541ace327dca41977fcb48319bb217a79 Mon Sep 17 00:00:00 2001 From: Vicente Date: Sun, 13 Jul 2025 15:15:20 -0600 Subject: [PATCH] Fix bug related to publish.yml --- .github/workflows/publish.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c4538f..4a61bd9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,28 +1,22 @@ name: Publish to PyPI and GitHub Packages - on: push: tags: - "v*.*.*" - release: - types: [published] - jobs: build-and-publish: runs-on: ubuntu-latest - steps: - name: Check out code uses: actions/checkout@v3 - with: - ref: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }} - name: Set up Python uses: actions/setup-python@v4 + with: python-version: "3.10" - - name: Install build tools + run: | python -m pip install --upgrade pip setuptools wheel twine @@ -34,14 +28,16 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + run: | twine upload \ - --repository-url https://api.github.com/orgs/UCD-BDLab/packages/pypi/upload \ + --repository-url https://upload.pypi.github.io/UCD-BDLab/BioNeuralNet \ dist/* - name: Publish to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | twine upload dist/*