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

adding release_and_publish_pypi.yaml file, may need editing but unsur… #167

Merged
merged 5 commits into from
Apr 25, 2023

Conversation

clintonsteiner
Copy link
Contributor

…e at this time

Took a first crack at creating this but this is my first attempt at a github action so I am anticipating this will need some additional commits

@jhoshiko jhoshiko requested review from nreinicke, robfitzgerald, a user and jhoshiko April 24, 2023 16:05
Copy link
Collaborator

@nreinicke nreinicke left a comment

Choose a reason for hiding this comment

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

Nice, thanks for starting this! I added some comments

- name: Build package
run: |
python -m build
python setup.py bdist_wheel sdist
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this second build step might be redundant, python -m build should build both the wheels and the source distributions that we need.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed redundant call

python setup.py bdist_wheel sdist
- name: Upload to twine test
run: |
twine upload -r testpypi dist/* --verbose
Copy link
Collaborator

@nreinicke nreinicke Apr 24, 2023

Choose a reason for hiding this comment

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

I think we'll also want to use a secret here with the same __token__ username and a new secrets.TEST_PYPI_API_TOKEN

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, fixed this

with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Add a git tag
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this can come out of this workflow since it's triggered by a release and so we'll already have built a tag for this release when this gets called.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed step to add a git tag, pushing changes up

= and others added 2 commits April 24, 2023 10:24
@nreinicke
Copy link
Collaborator

Great, these changes look good, thanks for implementing them. I think it could make sense to test this towards the end of the day when we have some more changes incorporated, releasing a new patch version.

@nreinicke nreinicke merged commit 28e7677 into NREL:main Apr 25, 2023
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