<@U0733742FR8> I tested the <CLI release process> ...
# proj-sdk
q
@better-park-34863 I tested the CLI release process in a dummy repo (see the release page for this dummy repo) App server Same release process as before. Tag PR to publish PyPI package
openhands-ai
, and manually create release + notes V1 CLI Create tag
X.X.X-cli
on PR. This will publish to PyPI package
openhands
, build binary executables, and automatically create a draft release with the binaries attached. Verify draft release, and publish with manual notes when ready Action items We need a fine-grained github PAT for the repository with the following scopes to automatically create the draft release with binaries attached • Actions (read + write) - to attach artifacts to the CI • Contents (read + write) - to create draft release with binaries • Metadata (read-only) - requires scope This secret cannot be named
GITHUB_TOKEN
(conflicting name, any other name works I put
CLI_RELEASE_TOKEN
for now)
👀 1
b
Looks good I think. Ship it lol
q
Cool! I think we can cut a release for V1 CLI anytime now LMK whenever convenient for you
cc @wooden-umbrella-84098 @limited-student-10747 will be cutting a release for V1 CLI specifically However, I won't be updating our docs until the main project is released (it contains deprecation warnings for V0 CLI and instructions for migrating to V1 CLI)
^ also need help setting up the github token for CI
w
ship it parrot
what can I help with?
we have a bot account I could generate a PAT for
and github actions usually have some kind of api access built in
q
i have the list of scopes in the root message could you confirm that the built in token for gh actions contains those scopes
(or that we have an equivalent token in the repo secrets)
OH nvm GPT says i can do something like this to modify the permissions for the workflow
Copy code
permissions:
  contents: write       # needed to create releases or upload assets
verified it works @better-park-34863 https://github.com/All-Hands-AI/OpenHands/pull/11307
w
nit: are we sure we want an action called
cli-build-test
to do releases? might be worth a rename
q
ah right good catch