Skip to content

Conversation

@ramosv
Copy link
Member

@ramosv ramosv commented Jul 13, 2025

Fix bug related to publish.yml

@ramosv ramosv requested a review from Copilot July 13, 2025 21:15
@ramosv ramosv self-assigned this Jul 13, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issues in the GitHub Actions workflow for publishing packages to PyPI and GitHub Packages. The changes simplify the workflow trigger conditions and correct the repository URL for GitHub Packages publishing.

  • Removes the release trigger and associated conditional logic to simplify workflow execution
  • Updates the GitHub Packages repository URL to use the correct endpoint format
  • Adds some formatting improvements with blank lines

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 \
Copy link

Copilot AI Jul 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub Packages repository URL appears to be incorrect. The correct format for GitHub Packages should be 'https://upload.pypi.org/legacy/' for PyPI or 'https://npm.pkg.github.com/OWNER/PACKAGE' for GitHub Packages. The current URL 'https://upload.pypi.github.io/UCD-BDLab/BioNeuralNet' does not match GitHub's documented endpoints.

Suggested change
--repository-url https://upload.pypi.github.io/UCD-BDLab/BioNeuralNet \
--repository-url https://upload.pypi.org/legacy/ \

Copilot uses AI. Check for mistakes.
- name: Publish to GitHub Packages
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Copy link

Copilot AI Jul 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using GITHUB_TOKEN for publishing to GitHub Packages may not have sufficient permissions. Consider using a Personal Access Token (PAT) with 'packages:write' scope stored as a secret instead.

Suggested change
TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
TWINE_PASSWORD: ${{ secrets.GITHUB_PACKAGES_PAT }}

Copilot uses AI. Check for mistakes.
@ramosv
Copy link
Member Author

ramosv commented Jul 13, 2025

All test checks have passed.
Since no code change I will merge to main bypassing rule.

@ramosv ramosv merged commit aac3055 into main Jul 13, 2025
11 checks passed
@ramosv ramosv deleted the update-publish-yml-release-on-tag branch July 31, 2025 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants