Skip to content
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

fix: troubleshoot GitHub Release failed #227

Open
Rebekah-Chuang opened this issue Aug 27, 2024 · 1 comment
Open

fix: troubleshoot GitHub Release failed #227

Rebekah-Chuang opened this issue Aug 27, 2024 · 1 comment

Comments

@Rebekah-Chuang
Copy link
Owner

Run the GutHub Action python-semantic-release, it successfully created a new tag but fail to release.

......
Building VizAble (0.13.3)
  - Building sdist
  - Built vizable-0.13.3.tar.gz
  - Building wheel
  - Built vizable-0.13.3-py3-none-any.whl
Build completed successfully!
[16:21:07] INFO     [semantic_release.hvcs.github] INFO            github.py:254
                    github.create_release: Creating release for                 
                    tag v0.13.3                                                 
[16:21:08] ERROR    [semantic_release.cli.commands.version] ERROR version.py:751
                    version.version: 401 Client Error:                          
                    Unauthorized for url:                                       
                    https://api.github.com/repos/Rebekah-Chuang/V               
                    izAble/releases                                             
                    NoneType: None                                              
401 Client Error: Unauthorized for url: https://api.github.com/repos/Rebekah-Chuang/VizAble/releases
Failed to create release on Github!

How to fix?

Check if the token is expired:

  1. Go to Profile --> Settings --> Developer Settings --> Personal access tokens --> Tokens (classic) --> [Click on the token needed] --> Regenerate Token --> [Copy the token immediately] --> Update token
  2. Go back to Repo --> Settings(Tab) --> Secrets and variables --> Actions --> [Click on the token you want to update] --> [Paste the copied token] --> Update secret
  3. Go back to action and re-run job
@Rebekah-Chuang Rebekah-Chuang pinned this issue Aug 27, 2024
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

No branches or pull requests

2 participants
@Rebekah-Chuang and others