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

Github Actions for Ocldev Build and Publish #1909

Closed
snyaggarwal opened this issue Jul 30, 2024 · 1 comment
Closed

Github Actions for Ocldev Build and Publish #1909

snyaggarwal opened this issue Jul 30, 2024 · 1 comment
Assignees
Labels
infra Infrastructure ocldev

Comments

@snyaggarwal
Copy link
Contributor

snyaggarwal commented Jul 30, 2024

Bamboo

Build

#!/bin/bash

pip install --upgrade pip --user
pip install setuptools==44.1.0 --user
pip install twine==1.15.0 --user

echo "Building distributions"
python ${bamboo.build.working.directory}/setup.py sdist bdist_wheel --universal

echo "Checking packages"
twine check ${bamboo.build.working.directory}/dist/*

echo "Uploading to TestPyPi"
twine upload -u __token__ -p ${password} -r testpypi ${directory}/dist/*

Publish to PyPi

...to come..
@snyaggarwal snyaggarwal added infra Infrastructure ocldev labels Jul 30, 2024
snyaggarwal added a commit to OpenConceptLab/ocldev that referenced this issue Aug 1, 2024
snyaggarwal added a commit to OpenConceptLab/ocldev that referenced this issue Aug 1, 2024
snyaggarwal added a commit to OpenConceptLab/ocldev that referenced this issue Aug 1, 2024
snyaggarwal added a commit to OpenConceptLab/ocldev that referenced this issue Aug 1, 2024
snyaggarwal added a commit to OpenConceptLab/ocldev that referenced this issue Aug 1, 2024
@snyaggarwal
Copy link
Contributor Author

@rkorytkowski @paynejd
Github Actions can now run tests and can also publish to PyPi (manual trigger).
I released a new version 0.2.0.
The last build is red, it was to test if the same version is re-triggered then it should not update PyPi.

So we can only publish to PyPi if the setup.py has an updated version in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Infrastructure ocldev
Projects
None yet
Development

No branches or pull requests

3 participants