stac-validator icon indicating copy to clipboard operation
stac-validator copied to clipboard

Push to pypi when a new release is created

Open jonhealy1 opened this issue 3 years ago • 9 comments

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 avatar Mar 11 '22 08:03 jonhealy1

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

gadomski avatar May 04 '22 16:05 gadomski

Hi. I will push to pypi in the morning

jonhealy1 avatar May 04 '22 19:05 jonhealy1

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

jonhealy1 avatar May 04 '22 20:05 jonhealy1

Still need a good script

jonhealy1 avatar May 04 '22 20:05 jonhealy1

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.

gadomski avatar May 04 '22 20:05 gadomski

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

  push:
    tags:
      - "*"

jonhealy1 avatar May 04 '22 20:05 jonhealy1

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

jonhealy1 avatar May 04 '22 20:05 jonhealy1

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.

gadomski avatar May 04 '22 20:05 gadomski

nice ok thank you

jonhealy1 avatar May 04 '22 20:05 jonhealy1