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

Package Workflow not publishing to PyPI #27

Open
banillie opened this issue Jan 20, 2022 · 10 comments
Open

Package Workflow not publishing to PyPI #27

banillie opened this issue Jan 20, 2022 · 10 comments

Comments

@banillie
Copy link
Owner

probably something to do with updating secret keys.

@yulqen
Copy link
Contributor

yulqen commented Jan 20, 2022

@banillie - what exactly is the problem? Not sure what "Package Workflow" means. Can help if you're able to describe what you're trying to do.

@banillie
Copy link
Owner Author

banillie commented Jan 20, 2022

@yulqen I've created a .yml file in .github/workflows. This publishes Python 🐍 distributions 📦 to PyPI and TestPyPI.

It was working fine until Tuesday when I initiated the workflow to publish the latest version of the package. It ran as expected, but skipped the actual publishing to PYPI. The work log shows this https://github.com/banillie/analysis_engine/actions

Not sure what happened?! I was going to go back over the tutorial I used for setting up the workflow to refresh my memory on how it works.

Cheers.

@yulqen
Copy link
Contributor

yulqen commented Jan 20, 2022

@banillie - I can't see the log containing the failure (the URL in your last post is wrong) but looking at your .yml file, there's a bit too much going on in there for me to work out and I've not used a similar workflow before. Depends what the error log says - if you weren't passing authentication at PyPI (i.e. if your secret was wrong), it would tell you. Strange that it fails silently.

@banillie
Copy link
Owner Author

@yulqen ok thanks. Will show you tomorrow! Another thing to add to the list!

@banillie
Copy link
Owner Author

@yulqen still ok for a coding chat later? What time is good for you?

@banillie
Copy link
Owner Author

banillie commented Jan 27, 2022

@yulqen something to do with how I'm version tagging the code git tag v[no] and then git push --tags before or after the commit. The yml file will only push to PyPi if: startsWith(github.ref, 'refs/tags'). I've obviously forgotten the correct steps for tagging.

I've just removed the tagging requirement for now. Will read-up on git tagging when I have sometime.

@yulqen
Copy link
Contributor

yulqen commented Jan 27, 2022

You might have to use semantic versioning format or something (v.1.0.0, v.0.1.0, etc). Looks like you're doing it right from a git point of view.

@banillie
Copy link
Owner Author

@yulqen do you have any time tomorrow for a coding chat? No problem if you don't dude. Only if it's suitable for you.

@yulqen
Copy link
Contributor

yulqen commented Jan 27, 2022

Yep, should be good. Usual time.

@banillie
Copy link
Owner Author

Excellent. 👍 Cheers 👨 see you then.

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