Skip to content

fix/ci-release #264

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

fix/ci-release #264

wants to merge 5 commits into from

Conversation

tgrandje
Copy link
Collaborator

@tgrandje tgrandje commented Mar 7, 2025

Should avoid creating a release which already exists.

@tfardet any idea how to test this?

Also : actions/create-release and actions/upload-release-asset are not maintained anymore , pypa/gh-action-pypi-publish seems outdated. As I'm never quite sure how to test CIs, I'd say we could start with fixing the limited PR as it is?

@tfardet
Copy link
Collaborator

tfardet commented Mar 9, 2025

honestly, I don't know how to trigger this workflow except by creating the release, so I don't think we will ever encounter exists=false, so unless you know how to make this case happen, I'd just remove the github release part altogether

@tgrandje
Copy link
Collaborator Author

tgrandje commented Mar 9, 2025

Sure!

As I was not certain why this was there in the first place I let it and added the condition ; I agree it makes more sense to remove this if possible. @hadrilec do you have any insights on this?

@hadrilec
Copy link
Contributor

hadrilec commented Mar 9, 2025

I used to test the ci by uploading to pypitest

- name: Upload Release Assets to PyPI
        uses: pypa/[email protected]
        with:
          user: __token__
          password: ${{ secrets.pypi_password }}
          skip_existing: true
          repository_url: https://test.pypi.org/legacy/

@tgrandje
Copy link
Collaborator Author

tgrandje commented Mar 9, 2025

Yet that won't work until this is pushed to master (I think). Maybe we keep this option for latter tests if we choose to move away from those unmaintained actions?

@tfardet
Copy link
Collaborator

tfardet commented Mar 24, 2025

@hadrilec this seems OK to me, but since you were the one doing the releases before, I just want to double-check that this is fine with you and that we did not miss something.

What I usually do is :

  1. bump the version
  2. make a release associated to the commit with the bumped version
  3. let the CI run for the new release and make the push to PyPi

as far as I can tell, the changes done here are now compatible with this workflow (previously the CI config files would attempt to re-create a release, which would fail) but maybe you were doing things differently.

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.

3 participants