Skip to content

Commit

Permalink
ci: Add pipeline to publish glcli
Browse files Browse the repository at this point in the history
Remove publishing the python cli from the pipelines and add publishing
the rust cli to the pipelines

Signed-off-by: Peter Neuroth <[email protected]>
  • Loading branch information
nepet authored and cdecker committed Jan 31, 2025
1 parent 3fc664f commit e112aa5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
4 changes: 2 additions & 2 deletions gitlab/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Gitlab Pipelines
There are 5 Greenlight packaged binaries/libraries that are published - 2 Python packages and 3 Rust crates.
There are 5 Greenlight packaged binaries/libraries that are published - 1 Python packages and 4 Rust crates.

The builds are triggered by certain tag formats. Make sure to include a patch as well since the Rust compiler requires that (applicable to `gl-client-py` as well).

Expand All @@ -11,9 +11,9 @@ If a tagged release doesn't work, it can be retried by adding an `_N` suffix aft

### PyPI
* gl-client-py - `glclientpy_YYYYMMDD-x.x.x`
* greenlight-cli - `glcli_YYYYMMDD-x.x.x`

### crates.io
* gl-client - `glclient_YYYYMMDD-x.x.x`
* gl-plugin - `glplugin_YYYYMMDD-x.x.x`
* gl-signerproxy - `glsignerproxy_YYYYMMDD-x.x.x`
* gl-cli -`glcli_YYYYMMDD-x.x.x`
7 changes: 7 additions & 0 deletions gitlab/build-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ build_gl_signerproxy:
- if: $CI_COMMIT_TAG =~ /glsignerproxy_\d{8}(_[1-9][0-9]?)?\-.*/
variables:
PKG_NAME: gl-signerproxy

build_gl_cli:
extends: .build_rust_prep
rules:
- if: $CI_COMMIT_TAG =~ /glcli_\d{8}(_[1-9][0-9]?)?\-.*/
variables:
PKG_NAME: gl-cli
20 changes: 0 additions & 20 deletions gitlab/build-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,3 @@ build_gl_client_py:
expire_in: 2 weeks
paths:
- "target/wheels/*"

build_glcli:
extends: .build_setup
when: manual
rules:
- if: $CI_COMMIT_TAG =~ /glcli_\d{8}(_[1-9][0-9]?)?\-.*/
before_script:
- export NEW_VER=$(echo ${CI_COMMIT_TAG} | cut -d'-' -f2)
- sed -i "s/^version = \".*\"/version = \"$NEW_VER\"/" tools/glcli/pyproject.toml
- . $HOME/.cargo/env # sh doesn't have the correct PATH
script:
- cd tools/glcli
- poetry config pypi-token.pypi ${PYPI_TOKEN}
- poetry build
- poetry publish
- ls -lh dist
artifacts:
expire_in: 2 weeks
paths:
- "tools/glcli/dist/*"

0 comments on commit e112aa5

Please sign in to comment.