-
Notifications
You must be signed in to change notification settings - Fork 2
Fix bug related to publish.yml #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -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 \ | ||||||
|
||||||
| --repository-url https://upload.pypi.github.io/UCD-BDLab/BioNeuralNet \ | |
| --repository-url https://upload.pypi.org/legacy/ \ |
There was a problem hiding this comment.
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.