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

Push to pypi when a new release is created #196

Open
jonhealy1 opened this issue Mar 11, 2022 · 9 comments
Open

Push to pypi when a new release is created #196

jonhealy1 opened this issue Mar 11, 2022 · 9 comments

Comments

@jonhealy1
Copy link
Collaborator

Right now with gh actions, a new release is pushed to pypi every time a pr is merged into main. We should change this - if we can - so that this only happens when a new release is created.

@jonhealy1 jonhealy1 mentioned this issue Mar 11, 2022
@gadomski
Copy link
Member

gadomski commented May 4, 2022

@jonhealy1 unsure what the status is here, but v3.1.0 isn't on pypi.

@jonhealy1
Copy link
Collaborator Author

Hi. I will push to pypi in the morning

@jonhealy1
Copy link
Collaborator Author

https://pypi.org/project/stac-validator/3.1.0/ It was less problematic than I thought

@jonhealy1
Copy link
Collaborator Author

Still need a good script

@gadomski
Copy link
Member

gadomski commented May 4, 2022

If you want, stactools has a publish-on-tag-push workflow that you could copy: https://github.com/stac-utils/stactools/blob/main/.github/workflows/release.yml.

@jonhealy1
Copy link
Collaborator Author

nice thanks. What does this do? What activates this? My git is weak

  push:
    tags:
      - "*"

@jonhealy1
Copy link
Collaborator Author

You push a branch with a tag associated to it maybe - what would that look like?

@gadomski
Copy link
Member

gadomski commented May 4, 2022

push:
    tags:
      - "*"

means the workflow will run any time a tag is pushed to the repo, e.g.:

git tag -a v0.3.1
git push origin v0.3.1

There's some docs on how the release flow works for stactools here: https://github.com/stac-utils/stactools/blob/main/RELEASING.md.

@jonhealy1
Copy link
Collaborator Author

nice ok thank you

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