Code Monkey home page Code Monkey logo

Comments (9)

Zeitsperre avatar Zeitsperre commented on July 24, 2024 1

Awesome! I don't have the privileges to make releases on GitHub, but if that's extended to me, I can take over.

If we want, I could even adapt a workflow from another project to make semi-automatic deployments to PyPI/TestPyPI. I'll open a PR for that!

from climpred.

aaronspring avatar aaronspring commented on July 24, 2024 1

Maintainer rights given

from climpred.

Zeitsperre avatar Zeitsperre commented on July 24, 2024 1

There is even a GHA workflow for this but I doubt it actually works

I see it. Yeah, I've recently been adopting Trusted Publishing so that we don't need to supply usernames and passwords. Much better for collaborative projects.

from climpred.

aaronspring avatar aaronspring commented on July 24, 2024

All ready from my point of view

from climpred.

aaronspring avatar aaronspring commented on July 24, 2024

There is even a GHA workflow for this but I doubt it actually works

from climpred.

Zeitsperre avatar Zeitsperre commented on July 24, 2024

@aaronspring I'm nearly done my update. It's just missing one final step:

Would you be able to add the following configurations to the repo?

  • Settings → Environments → "New environment" → "staging"
  • Settings → Environments → "New environment" → "production"

For both:

  • Enable "Required reviewers" and add everyone who is allowed to make releases
  • Enable "Prevent self-review"
  • Enable "Allow administrators to bypass configured protection rules" (so that you don't have to wait on me if you're preparing a release)

This will give us a few security checks before anything is sent out to TestPyPI and PyPI. You'll be free to remove the PYPI_USERNAME and PYPI_PASSWORD secrets afterwards.

from climpred.

aaronspring avatar aaronspring commented on July 24, 2024

Both envs added. Thanks for leading this

from climpred.

Zeitsperre avatar Zeitsperre commented on July 24, 2024

Ah, two final things:

  1. For Trusted Publishing, you need to configure the Climpred PyPI with the following:
  • Your Account → climpred → "Publishing" → Below "Add a new publisher":
    • Owner: "pangeo-data"
    • Repository name: "climpred"
    • Workflow name: "publish-production-pypi.yml"
    • Environment name: "production"
  1. I've made an account for climpred on TestPyPI (https://test.pypi.org/project/climpred/). If you make an account there, I'll pass maintainer status onto you.

That should be the end of the configurations required!

from climpred.

aaronspring avatar aaronspring commented on July 24, 2024
  1. done
  2. no need

from climpred.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.